Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1628)

Unified Diff: cc/draw_properties.h

Issue 11503005: cc: Refactor content scale/bounds into draw properties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix shadowing Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/draw_properties.h
diff --git a/cc/draw_properties.h b/cc/draw_properties.h
index 3895ef0720ab675044c7f7f9d63142261ac8e3ed..fe92df88b21bbfa90edf5217b996823e1e4473af 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,10 @@ struct CC_EXPORT DrawProperties {
// state.
gfx::Rect clip_rect;
+ float contents_scale_x;
danakj 2012/12/14 20:37:23 Comment please, maybe this? // The scale used to
+ 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;
};

Powered by Google App Engine
This is Rietveld 408576698