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

Unified Diff: cc/quads/shared_quad_state.h

Issue 1175113010: cc: Rename visible_content_rect and content stuff on quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename-visible-content-rect: comment Created 5 years, 6 months 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/quads/shared_quad_state.h
diff --git a/cc/quads/shared_quad_state.h b/cc/quads/shared_quad_state.h
index 6f0ef92908d1106f5c545d1a5a3162aee4a994fe..a66c7bcac2f9f8bb73f4dacce8802acf609472dd 100644
--- a/cc/quads/shared_quad_state.h
+++ b/cc/quads/shared_quad_state.h
@@ -32,9 +32,9 @@ class CC_EXPORT SharedQuadState {
void CopyFrom(const SharedQuadState* other);
- void SetAll(const gfx::Transform& content_to_target_transform,
- const gfx::Size& content_bounds,
- const gfx::Rect& visible_content_rect,
+ void SetAll(const gfx::Transform& quad_to_target_transform,
+ const gfx::Size& layer_bounds,
+ const gfx::Rect& visible_layer_rect,
const gfx::Rect& clip_rect,
bool is_clipped,
float opacity,
@@ -42,12 +42,13 @@ class CC_EXPORT SharedQuadState {
int sorting_context_id);
void AsValueInto(base::trace_event::TracedValue* dict) const;
- // Transforms from quad's original content space to its target content space.
- gfx::Transform content_to_target_transform;
- // This size lives in the content space for the quad's originating layer.
- gfx::Size content_bounds;
- // This rect lives in the content space for the quad's originating layer.
- gfx::Rect visible_content_rect;
+ // Transforms quad rects into the target content space.
+ gfx::Transform quad_to_target_transform;
+ // The size of the quads' originating layer in the space of the quad rects.
+ gfx::Size quad_layer_bounds;
+ // The size of the visible area in the quads' originating layer, in the space
+ // of the quad rects.
+ gfx::Rect visible_quad_layer_rect;
// This rect lives in the target content space.
gfx::Rect clip_rect;
bool is_clipped;

Powered by Google App Engine
This is Rietveld 408576698