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

Unified Diff: cc/picture_layer.cc

Issue 11678003: cc: Fix low-res impl-side painting artifacts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: \okayguy{0.0625*f*} Created 7 years, 11 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_layer.h ('k') | cc/picture_layer_impl.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 d00f54b74e87e549a9d583bfe36cda9550f5c6cb..4f192da7e180fdb51eaa7071aaad1d5107143fce 100644
--- a/cc/picture_layer.cc
+++ b/cc/picture_layer.cc
@@ -43,6 +43,12 @@ void PictureLayer::pushPropertiesTo(LayerImpl* base_layer) {
layer_impl->SyncFromActiveLayer();
}
+void PictureLayer::setLayerTreeHost(LayerTreeHost* host) {
+ Layer::setLayerTreeHost(host);
+ if (host)
+ pile_.SetMinContentsScale(host->settings().minimumContentsScale);
+}
+
void PictureLayer::setNeedsDisplayRect(const gfx::RectF& layer_rect) {
gfx::Rect rect = gfx::ToEnclosedRect(layer_rect);
pending_invalidation_.Union(rect);
« no previous file with comments | « cc/picture_layer.h ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698