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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 2688673003: cc: Distinguish single texture mask from normal masks (Closed)
Patch Set: Rebase 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
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 5f1ddf1b291ede8ce65a8367ccf47a654b0940ab..94d16aaf5354c10051c70c4a79d38347543f0ff4 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "cc/base/cc_export.h"
+#include "cc/layers/layer.h"
#include "cc/layers/layer_impl.h"
#include "cc/tiles/picture_layer_tiling.h"
#include "cc/tiles/picture_layer_tiling_set.h"
@@ -29,14 +30,13 @@ class CC_EXPORT PictureLayerImpl
: public LayerImpl,
NON_EXPORTED_BASE(public PictureLayerTilingClient) {
public:
- static std::unique_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl,
- int id,
- bool is_mask) {
- return base::WrapUnique(new PictureLayerImpl(tree_impl, id, is_mask));
+ static std::unique_ptr<PictureLayerImpl>
+ Create(LayerTreeImpl* tree_impl, int id, Layer::LayerMaskType mask_type) {
+ return base::WrapUnique(new PictureLayerImpl(tree_impl, id, mask_type));
}
~PictureLayerImpl() override;
- bool is_mask() const { return is_mask_; }
+ Layer::LayerMaskType mask_type() const { return mask_type_; }
// LayerImpl overrides.
const char* LayerTypeAsString() const override;
@@ -99,7 +99,9 @@ class CC_EXPORT PictureLayerImpl
}
protected:
- PictureLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask);
+ PictureLayerImpl(LayerTreeImpl* tree_impl,
+ int id,
+ Layer::LayerMaskType mask_type);
PictureLayerTiling* AddTiling(float contents_scale);
void RemoveAllTilings();
void AddTilingsForRasterScale();
@@ -143,7 +145,7 @@ class CC_EXPORT PictureLayerImpl
bool was_screen_space_transform_animating_;
bool only_used_low_res_last_append_quads_;
- const bool is_mask_;
+ const Layer::LayerMaskType mask_type_;
bool nearest_neighbor_;
bool is_directly_composited_image_;
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698