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

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: Rolling skia to 7896 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
« no previous file with comments | « cc/picture.cc ('k') | cc/picture_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer.cc
diff --git a/cc/picture_layer.cc b/cc/picture_layer.cc
index 8c5bc91c721c91aa9527a3c379de6a3f83f9d231..348d952c043916d358edf41f0e827f6a0be26724 100644
--- a/cc/picture_layer.cc
+++ b/cc/picture_layer.cc
@@ -48,8 +48,10 @@ void PictureLayer::pushPropertiesTo(LayerImpl* base_layer) {
void PictureLayer::setLayerTreeHost(LayerTreeHost* host) {
Layer::setLayerTreeHost(host);
- if (host)
- pile_->SetMinContentsScale(host->settings().minimumContentsScale);
+ if (host) {
+ pile_->SetMinContentsScale(host->settings().minimumContentsScale);
+ pile_->SetTileGridSize(host->settings().defaultTileSize);
+ }
}
void PictureLayer::setNeedsDisplayRect(const gfx::RectF& layer_rect) {
« no previous file with comments | « cc/picture.cc ('k') | cc/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698