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

Unified Diff: cc/test/fake_mask_layer_impl.h

Issue 2828353003: Determine mask UVs based on texture size (Closed)
Patch Set: nit Created 3 years, 7 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/data/mask_with_non_exact_texture_size.png ('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 c4b646fdd57711d7556126969e3fc41ae7c79001..f7ce7f4a2c3db09f68be48f8040a4e3a9b62c476 100644
--- a/cc/test/fake_mask_layer_impl.h
+++ b/cc/test/fake_mask_layer_impl.h
@@ -19,13 +19,19 @@ class FakeMaskLayerImpl : public PictureLayerImpl {
Layer::LayerMaskType mask_type);
void GetContentsResourceId(ResourceId* resource_id,
- gfx::Size* resource_size) const override;
+ gfx::Size* resource_size,
+ gfx::SizeF* mask_uv_size) const override;
+ void set_resource_size(gfx::Size resource_size) {
+ resource_size_ = resource_size;
+ }
private:
FakeMaskLayerImpl(LayerTreeImpl* tree_impl,
int id,
scoped_refptr<RasterSource> raster_source,
Layer::LayerMaskType mask_type);
+
+ gfx::Size resource_size_;
};
} // namespace cc
« no previous file with comments | « cc/test/data/mask_with_non_exact_texture_size.png ('k') | cc/test/fake_mask_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698