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

Unified Diff: cc/draw_quad.h

Issue 11416088: cc: Turn SharedQuadState into a struct-like class similar to DrawQuads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix debug build Created 8 years, 1 month 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
« no previous file with comments | « cc/delegated_renderer_layer_impl_unittest.cc ('k') | cc/draw_quad_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/draw_quad.h
diff --git a/cc/draw_quad.h b/cc/draw_quad.h
index 255d3543fa50d88c5d0a7472f755674da7466fcc..7dee19c4dc3d76abaaa0681813b408c12e2f1791 100644
--- a/cc/draw_quad.h
+++ b/cc/draw_quad.h
@@ -35,9 +35,9 @@ class CC_EXPORT DrawQuad {
const SharedQuadState* copied_shared_quad_state) const;
// TODO(danakj): Chromify or remove these SharedQuadState helpers.
- const WebKit::WebTransformationMatrix& quadTransform() const { return shared_quad_state->quadTransform; }
- gfx::Rect visibleContentRect() const { return shared_quad_state->visibleContentRect; }
- gfx::Rect clippedRectInTarget() const { return shared_quad_state->clippedRectInTarget; }
+ const WebKit::WebTransformationMatrix& quadTransform() const { return shared_quad_state->content_to_target_transform; }
+ gfx::Rect visibleContentRect() const { return shared_quad_state->visible_content_rect; }
+ gfx::Rect clippedRectInTarget() const { return shared_quad_state->clipped_rect_in_target; }
float opacity() const { return shared_quad_state->opacity; }
Material material;
« no previous file with comments | « cc/delegated_renderer_layer_impl_unittest.cc ('k') | cc/draw_quad_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698