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

Unified Diff: cc/picture_layer_tiling_set.cc

Issue 11516022: cc: Resize picture layer tiling set during commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/picture_layer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling_set.cc
diff --git a/cc/picture_layer_tiling_set.cc b/cc/picture_layer_tiling_set.cc
index e435a1001c406d4a43ae85ef1f1f7dbce4d37866..4ec2e70b1d879f7d68b1a5e39fbf7dc4297837cb 100644
--- a/cc/picture_layer_tiling_set.cc
+++ b/cc/picture_layer_tiling_set.cc
@@ -24,6 +24,8 @@ void PictureLayerTilingSet::CloneFrom(const PictureLayerTilingSet& other) {
}
void PictureLayerTilingSet::SetLayerBounds(gfx::Size layer_bounds) {
+ if (layer_bounds_ == layer_bounds)
+ return;
layer_bounds_ = layer_bounds;
for (size_t i = 0; i < tilings_.size(); ++i)
tilings_[i]->SetLayerBounds(layer_bounds);
« no previous file with comments | « cc/picture_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698