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

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: 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 fc0507c6edd936262ed8b87c7c42ef8bc8353d10..eda7188838f0a1d0b85fb16dae61200fd5580283 100644
--- a/cc/draw_properties.h
+++ b/cc/draw_properties.h
@@ -16,12 +16,15 @@ namespace cc {
template<typename LayerType, typename RenderSurfaceType>
struct CC_EXPORT DrawProperties {
DrawProperties()
- : opacity(0)
- , opacity_is_animating(false)
- , target_space_transform_is_animating(false)
- , screen_space_transform_is_animating(false)
- , is_clipped(false)
- , render_target(0)
+ : opacity(0),
+ opacity_is_animating(false),
+ target_space_transform_is_animating(false),
+ screen_space_transform_is_animating(false),
+ is_clipped(false),
+ render_target(0),
+ ideal_contents_scale(1),
+ contents_scale_x(1),
+ contents_scale_y(1)
{
}
@@ -67,6 +70,11 @@ struct CC_EXPORT DrawProperties {
// layer. This value is used to avoid unnecessarily changing GL scissor
// state.
gfx::Rect clip_rect;
+
+ float ideal_contents_scale;
shawnsingh 2012/12/11 21:54:05 Conceptually, it seems like ideal_contents_scale i
enne (OOO) 2012/12/11 23:23:44 Ok, sure. I can store it elsewhere. I just thoug
+ float contents_scale_x;
+ float contents_scale_y;
+ gfx::Size content_bounds;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698