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

Unified Diff: cc/picture_layer.cc

Issue 12221077: Fixing tile grid size used by cc:Picture to make it respect current tile configuration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing clang builds Created 7 years, 10 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
Index: cc/picture_layer.cc
diff --git a/cc/picture_layer.cc b/cc/picture_layer.cc
index b9ce65a50240b32e79e5b2e4c94c09d4e4ca418c..f647e89b2494ab38c1cf674cbc19d8607bd0c2dc 100644
--- a/cc/picture_layer.cc
+++ b/cc/picture_layer.cc
@@ -46,8 +46,9 @@ void PictureLayer::pushPropertiesTo(LayerImpl* base_layer) {
void PictureLayer::setLayerTreeHost(LayerTreeHost* host) {
Layer::setLayerTreeHost(host);
- if (host)
- pile_->SetMinContentsScale(host->settings().minimumContentsScale);
+ if (host) {
+ pile_->ApplyLayerTreeSettings(host);
+ }
}
void PictureLayer::setNeedsDisplayRect(const gfx::RectF& layer_rect) {

Powered by Google App Engine
This is Rietveld 408576698