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

Unified Diff: cc/quads/shared_quad_state.cc

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: moreandroid 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
« no previous file with comments | « cc/quads/shared_quad_state.h ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/shared_quad_state.cc
diff --git a/cc/quads/shared_quad_state.cc b/cc/quads/shared_quad_state.cc
index 5e46fcc24d706f8f9f66a399a10eeeb46df85b28..e09cdaf9f3bba22365f921b9ddb5c0fccfd7d202 100644
--- a/cc/quads/shared_quad_state.cc
+++ b/cc/quads/shared_quad_state.cc
@@ -28,17 +28,17 @@ void SharedQuadState::CopyFrom(const SharedQuadState* other) {
*this = *other;
}
-void SharedQuadState::SetAll(const gfx::Transform& content_to_target_transform,
- const gfx::Size& content_bounds,
- const gfx::Rect& visible_content_rect,
+void SharedQuadState::SetAll(const gfx::Transform& quad_to_target_transform,
+ const gfx::Size& quad_layer_bounds,
+ const gfx::Rect& visible_quad_layer_rect,
const gfx::Rect& clip_rect,
bool is_clipped,
float opacity,
SkXfermode::Mode blend_mode,
int sorting_context_id) {
- this->content_to_target_transform = content_to_target_transform;
- this->content_bounds = content_bounds;
- this->visible_content_rect = visible_content_rect;
+ this->quad_to_target_transform = quad_to_target_transform;
+ this->quad_layer_bounds = quad_layer_bounds;
+ this->visible_quad_layer_rect = visible_quad_layer_rect;
this->clip_rect = clip_rect;
this->is_clipped = is_clipped;
this->opacity = opacity;
@@ -47,10 +47,10 @@ void SharedQuadState::SetAll(const gfx::Transform& content_to_target_transform,
}
void SharedQuadState::AsValueInto(base::trace_event::TracedValue* value) const {
- MathUtil::AddToTracedValue("transform", content_to_target_transform, value);
- MathUtil::AddToTracedValue("layer_content_bounds", content_bounds, value);
- MathUtil::AddToTracedValue("layer_visible_content_rect", visible_content_rect,
- value);
+ MathUtil::AddToTracedValue("transform", quad_to_target_transform, value);
+ MathUtil::AddToTracedValue("layer_content_bounds", quad_layer_bounds, value);
+ MathUtil::AddToTracedValue("layer_visible_content_rect",
+ visible_quad_layer_rect, value);
value->SetBoolean("is_clipped", is_clipped);
« no previous file with comments | « cc/quads/shared_quad_state.h ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698