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

Unified Diff: cc/test/fake_mask_layer_impl.h

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 | « cc/output/software_renderer.cc ('k') | cc/test/fake_mask_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_mask_layer_impl.h
diff --git a/cc/test/fake_mask_layer_impl.h b/cc/test/fake_mask_layer_impl.h
index b4225bad40249e9f50fa0fcc4e59fbb282771b24..c4b646fdd57711d7556126969e3fc41ae7c79001 100644
--- a/cc/test/fake_mask_layer_impl.h
+++ b/cc/test/fake_mask_layer_impl.h
@@ -5,20 +5,27 @@
#ifndef CC_TEST_FAKE_MASK_LAYER_IMPL_H_
#define CC_TEST_FAKE_MASK_LAYER_IMPL_H_
-#include "cc/layers/layer_impl.h"
+#include "cc/layers/picture_layer_impl.h"
+#include "cc/raster/raster_source.h"
namespace cc {
-class FakeMaskLayerImpl : public LayerImpl {
+class FakeMaskLayerImpl : public PictureLayerImpl {
public:
- static std::unique_ptr<FakeMaskLayerImpl> Create(LayerTreeImpl* tree_impl,
- int id);
+ static std::unique_ptr<FakeMaskLayerImpl> Create(
+ LayerTreeImpl* tree_impl,
+ int id,
+ scoped_refptr<RasterSource> raster_source,
+ Layer::LayerMaskType mask_type);
void GetContentsResourceId(ResourceId* resource_id,
gfx::Size* resource_size) const override;
private:
- FakeMaskLayerImpl(LayerTreeImpl* tree_impl, int id);
+ FakeMaskLayerImpl(LayerTreeImpl* tree_impl,
+ int id,
+ scoped_refptr<RasterSource> raster_source,
+ Layer::LayerMaskType mask_type);
};
} // namespace cc
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/test/fake_mask_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698