mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Implement enough of 3d transforms spec to run the CSS FPS demo.
This commit is contained in:
parent
d86c587925
commit
39ddbbb0e1
19 changed files with 894 additions and 145 deletions
|
@ -29,6 +29,7 @@ use euclid::rect::Rect;
|
|||
use euclid::side_offsets::SideOffsets2D;
|
||||
use euclid::size::Size2D;
|
||||
use libc::types::common::c99::uint32_t;
|
||||
use msg::compositor_msg::LayerKind;
|
||||
use net_traits::image::base::Image;
|
||||
use png::PixelsByColorType;
|
||||
use std::default::Default;
|
||||
|
@ -54,6 +55,8 @@ pub struct PaintContext<'a> {
|
|||
/// clipping region used by the last display item. We cache the last value so that we avoid
|
||||
/// pushing and popping clipping regions unnecessarily.
|
||||
pub transient_clip: Option<ClippingRegion>,
|
||||
/// A temporary hack to disable clipping optimizations on 3d layers.
|
||||
pub layer_kind: LayerKind,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue