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

Unified Diff: cc/layers/picture_layer.cc

Issue 2717533005: cc: RenderSurfaceImpl tile mask layer. (Closed)
Patch Set: Prevent single_texture_mask to multi_texture_mask conversion. Created 3 years, 8 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/layers/render_surface_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index 6cacd6fca499d11388277351b805970c77e541e6..7c1502085e997d7e2c41486ce17238913a51770c 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -146,6 +146,11 @@ bool PictureLayer::Update() {
}
void PictureLayer::SetLayerMaskType(LayerMaskType mask_type) {
+ // We do not allow converting SINGLE_TEXTURE_MASK to MULTI_TEXTURE_MASK in
+ // order to avoid rerastering when a mask's transform is being animated.
+ if (mask_type_ == LayerMaskType::SINGLE_TEXTURE_MASK &&
+ LayerMaskType::MULTI_TEXTURE_MASK)
+ return;
mask_type_ = mask_type;
}
« no previous file with comments | « no previous file | cc/layers/render_surface_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698