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

Unified Diff: cc/layers/contents_scaling_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/cc.gyp ('k') | cc/layers/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/contents_scaling_layer.cc
diff --git a/cc/layers/contents_scaling_layer.cc b/cc/layers/contents_scaling_layer.cc
index d602e884ebfb5bf6af092a764f48d6bc4bc4f215..7cde6c0c36cde6725299e9c8a7a9afa7098b45f8 100644
--- a/cc/layers/contents_scaling_layer.cc
+++ b/cc/layers/contents_scaling_layer.cc
@@ -44,7 +44,7 @@ void ContentsScalingLayer::Update(
last_update_contents_scale_x_ = draw_properties().contents_scale_x;
last_update_contents_scale_y_ = draw_properties().contents_scale_y;
// Invalidate the whole layer if scale changed.
- SetNeedsDisplayRect(gfx::Rect(bounds()));
+ SetNeedsDisplayRect(gfx::Rect(paint_properties().bounds));
}
} // namespace cc
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698