mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Refactoring of the Glutin port in preparation of the compositor refactoring.
This commit is contained in:
parent
d58ea974ba
commit
21ed7653f4
30 changed files with 1287 additions and 1067 deletions
|
@ -103,7 +103,7 @@ impl FrameTreeId {
|
|||
enum LayerPixel {}
|
||||
|
||||
/// NB: Never block on the constellation, because sometimes the constellation blocks on us.
|
||||
pub struct IOCompositor<Window: WindowMethods> {
|
||||
pub struct IOCompositor<Window: WindowMethods + ?Sized> {
|
||||
/// The application window.
|
||||
pub window: Rc<Window>,
|
||||
|
||||
|
@ -258,7 +258,7 @@ enum CompositeTarget {
|
|||
PngFile,
|
||||
}
|
||||
|
||||
impl<Window: WindowMethods> IOCompositor<Window> {
|
||||
impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
|
||||
fn new(window: Rc<Window>, state: InitialCompositorState) -> Self {
|
||||
let composite_target = match opts::get().output_file {
|
||||
Some(_) => CompositeTarget::PngFile,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue