mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Move LayerPixel to compositing.
This commit is contained in:
parent
7ef81c3d7d
commit
6a1f7a717d
2 changed files with 8 additions and 8 deletions
|
@ -11,7 +11,7 @@ use euclid::Point2D;
|
||||||
use euclid::point::TypedPoint2D;
|
use euclid::point::TypedPoint2D;
|
||||||
use euclid::scale_factor::ScaleFactor;
|
use euclid::scale_factor::ScaleFactor;
|
||||||
use euclid::size::TypedSize2D;
|
use euclid::size::TypedSize2D;
|
||||||
use gfx_traits::{DevicePixel, LayerPixel, ScrollRootId};
|
use gfx_traits::{DevicePixel, ScrollRootId};
|
||||||
use gfx_traits::{Epoch, FragmentType};
|
use gfx_traits::{Epoch, FragmentType};
|
||||||
use gleam::gl;
|
use gleam::gl;
|
||||||
use gleam::gl::types::{GLint, GLsizei};
|
use gleam::gl::types::{GLint, GLsizei};
|
||||||
|
@ -117,6 +117,13 @@ impl FrameTreeId {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// One pixel in layer coordinate space.
|
||||||
|
///
|
||||||
|
/// This unit corresponds to a "pixel" in layer coordinate space, which after scaling and
|
||||||
|
/// transformation becomes a device pixel.
|
||||||
|
#[derive(Copy, Clone, Debug)]
|
||||||
|
enum LayerPixel {}
|
||||||
|
|
||||||
/// NB: Never block on the constellation, because sometimes the constellation blocks on us.
|
/// NB: Never block on the constellation, because sometimes the constellation blocks on us.
|
||||||
pub struct IOCompositor<Window: WindowMethods> {
|
pub struct IOCompositor<Window: WindowMethods> {
|
||||||
/// The application window.
|
/// The application window.
|
||||||
|
|
|
@ -44,13 +44,6 @@ const SPECIAL_STACKING_CONTEXT_ID_MASK: usize = 0xffff;
|
||||||
#[derive(Copy, Clone, RustcEncodable, Debug)]
|
#[derive(Copy, Clone, RustcEncodable, Debug)]
|
||||||
pub enum DevicePixel {}
|
pub enum DevicePixel {}
|
||||||
|
|
||||||
/// One pixel in layer coordinate space.
|
|
||||||
///
|
|
||||||
/// This unit corresponds to a "pixel" in layer coordinate space, which after scaling and
|
|
||||||
/// transformation becomes a device pixel.
|
|
||||||
#[derive(Copy, Clone, RustcEncodable, Debug)]
|
|
||||||
pub enum LayerPixel {}
|
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||||
pub enum LayerKind {
|
pub enum LayerKind {
|
||||||
NoTransform,
|
NoTransform,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue