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

Unified Diff: cc/layers/solid_color_layer_impl.cc

Issue 678193002: cc: Full solid layers not at origin painted incorrectly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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') | no next file » | 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..147ea0832addfd6fb6a2e3c9d946241326492a98 100644
--- a/cc/layers/solid_color_layer_impl.cc
+++ b/cc/layers/solid_color_layer_impl.cc
@@ -42,10 +42,11 @@ void SolidColorLayerImpl::AppendSolidQuads(
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));
+ gfx::Rect quad_rect(
+ x,
+ y,
+ std::min(visible_content_rect.right() - x, kSolidQuadTileSize),
danakj 2014/10/27 22:53:07 throw these in temp vars like width/height so we d
+ std::min(visible_content_rect.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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698