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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 548223003: cc: Block drawing of tiles without twins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | cc/resources/picture_layer_tiling.h » ('j') | cc/trees/layer_tree_host_unittest_context.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index fb8f70150878e07eaa6e356d4301e0cba92caf19..0a60d61bab1a1789454b96fdcc2a0731c71cee0a 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -867,6 +867,13 @@ void PictureLayerImpl::MarkVisibleResourcesAsRequired() const {
twin_high_res = high_res ? GetTwinTiling(high_res) : NULL;
}
+ // When there is a race between activation+drawing and rasterizing,
+ // for tiles without twins, we should prevent the active tree from
+ // drawing these tiles.
+ if (twin_high_res && !twin_high_res->tiles_size()) {
+ layer_tree_impl()->SetRequiresHighResToDraw();
sohanjg 2014/09/08 13:45:16 we should SetRequiresHighResToDraw, on the twin la
+ }
+
// If this layer and its twin have different transforms, then don't compare
// them and only allow activating to high res tiles, since tiles on each
// layer will be in different places on screen.
« no previous file with comments | « no previous file | cc/resources/picture_layer_tiling.h » ('j') | cc/trees/layer_tree_host_unittest_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698