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

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: response to comments 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..b6c6c27d217a2f48da7b0af97cc54d5aaac81545 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->settings());
+ }
}
void PictureLayer::setNeedsDisplayRect(const gfx::RectF& layer_rect) {
« no previous file with comments | « cc/picture.cc ('k') | cc/picture_layer_impl_unittest.cc » ('j') | cc/picture_pile_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698