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

Unified Diff: cc/layer_tree_host_common.cc

Issue 11639050: cc: Support mask layers in impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_common.cc
diff --git a/cc/layer_tree_host_common.cc b/cc/layer_tree_host_common.cc
index 3fccbf12389f8ff0ebec4c0b0b70cc0d932ceb10..b4257e8efa1587836c59e6e361ad1473f72d85c7 100644
--- a/cc/layer_tree_host_common.cc
+++ b/cc/layer_tree_host_common.cc
@@ -233,6 +233,16 @@ static inline bool subtreeShouldBeSkipped(Layer* layer)
static inline void markLayerAsUpdated(LayerImpl* layer)
{
layer->didUpdateTransforms();
+
+ // Mask layers don't get this call, so explicitly update them so they can
+ // kick off tile rasterization.
+ if (layer->maskLayer())
+ layer->maskLayer()->didUpdateTransforms();
+ if (layer->replicaLayer()) {
+ layer->replicaLayer()->didUpdateTransforms();
+ if (layer->replicaLayer()->maskLayer())
+ layer->replicaLayer()->maskLayer()->didUpdateTransforms();
+ }
}
static inline void markLayerAsUpdated(Layer* layer)
« no previous file with comments | « no previous file | cc/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698