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

Unified Diff: cc/test/fake_mask_layer_impl.h

Issue 2828353003: Determine mask UVs based on texture size (Closed)
Patch Set: Add tolerance to filter_effects.html 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/test/data/mask_of_larger_layer.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..06fabdd7acde01d897550d7ce519f14edc8d4571 100644
--- a/cc/test/fake_mask_layer_impl.h
+++ b/cc/test/fake_mask_layer_impl.h
@@ -20,12 +20,17 @@ class FakeMaskLayerImpl : public PictureLayerImpl {
void GetContentsResourceId(ResourceId* resource_id,
gfx::Size* resource_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_of_larger_layer.png ('k') | cc/test/fake_mask_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698