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

Unified Diff: cc/layers/tiled_layer.cc

Issue 13939005: cc: Add strict layer property change checking and handle bounds changes during paint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/CHECK/DCHECK/ Created 7 years, 8 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/scrollbar_layer_unittest.cc ('k') | cc/layers/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/tiled_layer.cc
diff --git a/cc/layers/tiled_layer.cc b/cc/layers/tiled_layer.cc
index 99b44cefb8a527e13567f6208885d08800753b1d..039841bc7490f1c061a755530ede68f67c3e83b5 100644
--- a/cc/layers/tiled_layer.cc
+++ b/cc/layers/tiled_layer.cc
@@ -470,9 +470,11 @@ void TiledLayer::UpdateTileTextures(gfx::Rect paint_rect,
// The update_rect should be in layer space. So we have to convert the
// paint_rect from content space to layer space.
float width_scale =
- bounds().width() / static_cast<float>(content_bounds().width());
+ paint_properties().bounds.width() /
+ static_cast<float>(content_bounds().width());
float height_scale =
- bounds().height() / static_cast<float>(content_bounds().height());
+ paint_properties().bounds.height() /
+ static_cast<float>(content_bounds().height());
update_rect_ = gfx::ScaleRect(paint_rect, width_scale, height_scale);
// Calling PrepareToUpdate() calls into WebKit to paint, which may have the
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/layers/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698