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

Unified Diff: cc/test/fake_picture_layer_impl.cc

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/test/fake_picture_layer_impl.h ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_impl.cc
diff --git a/cc/test/fake_picture_layer_impl.cc b/cc/test/fake_picture_layer_impl.cc
index f32669aad5c17897f54e138e26b6a23e49052789..1d587979183c5fe0a6df362ff531af985e9556cc 100644
--- a/cc/test/fake_picture_layer_impl.cc
+++ b/cc/test/fake_picture_layer_impl.cc
@@ -18,8 +18,8 @@ FakePictureLayerImpl::FakePictureLayerImpl(
LayerTreeImpl* tree_impl,
int id,
scoped_refptr<RasterSource> raster_source,
- bool is_mask)
- : PictureLayerImpl(tree_impl, id, is_mask) {
+ Layer::LayerMaskType mask_type)
+ : PictureLayerImpl(tree_impl, id, mask_type) {
SetBounds(raster_source->GetSize());
SetRasterSourceOnPending(raster_source, Region());
}
@@ -28,21 +28,22 @@ FakePictureLayerImpl::FakePictureLayerImpl(
LayerTreeImpl* tree_impl,
int id,
scoped_refptr<RasterSource> raster_source,
- bool is_mask,
+ Layer::LayerMaskType mask_type,
const gfx::Size& layer_bounds)
- : PictureLayerImpl(tree_impl, id, is_mask) {
+ : PictureLayerImpl(tree_impl, id, mask_type) {
SetBounds(layer_bounds);
SetRasterSourceOnPending(raster_source, Region());
}
FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl,
int id,
- bool is_mask)
- : PictureLayerImpl(tree_impl, id, is_mask) {}
+ Layer::LayerMaskType mask_type)
+ : PictureLayerImpl(tree_impl, id, mask_type) {}
std::unique_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
- return base::WrapUnique(new FakePictureLayerImpl(tree_impl, id(), is_mask_));
+ return base::WrapUnique(
+ new FakePictureLayerImpl(tree_impl, id(), mask_type_));
}
void FakePictureLayerImpl::PushPropertiesTo(LayerImpl* layer_impl) {
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698