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

Unified Diff: cc/layers/picture_image_layer.cc

Issue 2688673003: cc: Distinguish single texture mask from normal masks (Closed)
Patch Set: Created 3 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
Index: cc/layers/picture_image_layer.cc
diff --git a/cc/layers/picture_image_layer.cc b/cc/layers/picture_image_layer.cc
index 67049c37bbf2f7c458f3c87854ebbc84e82e0a9f..48796fa79df07aef117de7804d5defd5afc07f85 100644
--- a/cc/layers/picture_image_layer.cc
+++ b/cc/layers/picture_image_layer.cc
@@ -27,7 +27,8 @@ PictureImageLayer::~PictureImageLayer() {
std::unique_ptr<LayerImpl> PictureImageLayer::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
- auto layer_impl = PictureLayerImpl::Create(tree_impl, id(), is_mask());
+ auto layer_impl = PictureLayerImpl::Create(tree_impl, id(), is_mask(),
+ is_single_texture_mask());
layer_impl->set_is_directly_composited_image(true);
return std::move(layer_impl);
}
« cc/layers/layer.h ('K') | « cc/layers/layer.cc ('k') | cc/layers/picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698