diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2015-06-18 13:06:31 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-06-23 14:10:44 +1000 |
commit | 39ddbbb0e1a20e7165740860b63cdf892951a5ec (patch) | |
tree | 26d78ca5b184929c5d3859f2e3f53e8e986e3101 /components/gfx/paint_context.rs | |
parent | d86c5879255ec9ced621412d4565a9a66ee4dc72 (diff) | |
download | servo-39ddbbb0e1a20e7165740860b63cdf892951a5ec.tar.gz servo-39ddbbb0e1a20e7165740860b63cdf892951a5ec.zip |
Implement enough of 3d transforms spec to run the CSS FPS demo.
Diffstat (limited to 'components/gfx/paint_context.rs')
-rw-r--r-- | components/gfx/paint_context.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/gfx/paint_context.rs b/components/gfx/paint_context.rs index 2098b5c9c19..57b6b1feba2 100644 --- a/components/gfx/paint_context.rs +++ b/components/gfx/paint_context.rs @@ -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)] |