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

Unified Diff: cc/layers/solid_color_layer_impl.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/layers/solid_color_layer_impl.h ('k') | cc/layers/solid_color_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/solid_color_layer_impl.cc
diff --git a/cc/layers/solid_color_layer_impl.cc b/cc/layers/solid_color_layer_impl.cc
index b85012a045d76a7cf60d6aba148a92e8aa147c0a..76cd3fc4229c238db8a36434475a1c1176a2cc89 100644
--- a/cc/layers/solid_color_layer_impl.cc
+++ b/cc/layers/solid_color_layer_impl.cc
@@ -29,29 +29,29 @@ scoped_ptr<LayerImpl> SolidColorLayerImpl::CreateLayerImpl(
void SolidColorLayerImpl::AppendSolidQuads(
RenderPass* render_pass,
- const Occlusion& occlusion_in_content_space,
+ const Occlusion& occlusion_in_layer_space,
SharedQuadState* shared_quad_state,
- const gfx::Rect& visible_content_rect,
+ const gfx::Rect& visible_layer_rect,
SkColor color,
AppendQuadsData* append_quads_data) {
// We create a series of smaller quads instead of just one large one so that
// the culler can reduce the total pixels drawn.
- int right = visible_content_rect.right();
- int bottom = visible_content_rect.bottom();
- for (int x = visible_content_rect.x(); x < visible_content_rect.right();
+ int right = visible_layer_rect.right();
+ int bottom = visible_layer_rect.bottom();
+ for (int x = visible_layer_rect.x(); x < visible_layer_rect.right();
x += kSolidQuadTileSize) {
- for (int y = visible_content_rect.y(); y < visible_content_rect.bottom();
+ for (int y = visible_layer_rect.y(); y < visible_layer_rect.bottom();
y += kSolidQuadTileSize) {
gfx::Rect quad_rect(x,
y,
std::min(right - x, kSolidQuadTileSize),
std::min(bottom - y, kSolidQuadTileSize));
gfx::Rect visible_quad_rect =
- occlusion_in_content_space.GetUnoccludedContentRect(quad_rect);
+ occlusion_in_layer_space.GetUnoccludedContentRect(quad_rect);
if (visible_quad_rect.IsEmpty())
continue;
- append_quads_data->visible_content_area +=
+ append_quads_data->visible_layer_area +=
visible_quad_rect.width() * visible_quad_rect.height();
SolidColorDrawQuad* quad =
« no previous file with comments | « cc/layers/solid_color_layer_impl.h ('k') | cc/layers/solid_color_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698