aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/paint_context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx/paint_context.rs')
-rw-r--r--components/gfx/paint_context.rs3
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)]