summaryrefslogtreecommitdiffstats
path: root/cc/draw_properties.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/draw_properties.h')
-rw-r--r--cc/draw_properties.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cc/draw_properties.h b/cc/draw_properties.h
index 3895ef0..e5bf813 100644
--- a/cc/draw_properties.h
+++ b/cc/draw_properties.h
@@ -24,6 +24,8 @@ struct CC_EXPORT DrawProperties {
, can_use_lcd_text(false)
, is_clipped(false)
, render_target(0)
+ , contents_scale_x(1)
+ , contents_scale_y(1)
, num_descendants_that_draw_content(0)
{
}
@@ -75,6 +77,14 @@ struct CC_EXPORT DrawProperties {
// state.
gfx::Rect clip_rect;
+ // The scale used to move between layer space and content space, and bounds
+ // of the space. One is always a function of the other, but which one
+ // depends on the layer type. For picture layers, this is an ideal scale,
+ // and not always the one used.
+ float contents_scale_x;
+ float contents_scale_y;
+ gfx::Size content_bounds;
+
// Does not include this layer itself, only its children and descendants.
int num_descendants_that_draw_content;
};