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

Unified Diff: cc/layers/solid_color_layer_impl.cc

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/picture_layer_impl_unittest.cc ('k') | cc/output/direct_renderer.h » ('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 e7ba09f1acfd6190bd310d557e7f3cbfa7f2efab..3376693361366a6d3301da1cda064777ee142612 100644
--- a/cc/layers/solid_color_layer_impl.cc
+++ b/cc/layers/solid_color_layer_impl.cc
@@ -36,16 +36,16 @@ void SolidColorLayerImpl::AppendSolidQuads(
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 width = visible_content_rect.width();
- int height = visible_content_rect.height();
+ int right = visible_content_rect.right();
+ int bottom = visible_content_rect.bottom();
for (int x = visible_content_rect.x(); x < visible_content_rect.right();
x += kSolidQuadTileSize) {
for (int y = visible_content_rect.y(); y < visible_content_rect.bottom();
y += kSolidQuadTileSize) {
gfx::Rect quad_rect(x,
y,
- std::min(width - x, kSolidQuadTileSize),
- std::min(height - y, kSolidQuadTileSize));
+ std::min(right - x, kSolidQuadTileSize),
+ std::min(bottom - y, kSolidQuadTileSize));
gfx::Rect visible_quad_rect =
occlusion_in_content_space.GetUnoccludedContentRect(quad_rect);
if (visible_quad_rect.IsEmpty())
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/output/direct_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698