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

Unified Diff: cc/test/fake_mask_layer_impl.cc

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/fake_mask_layer_impl.h ('k') | cc/test/fake_picture_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_mask_layer_impl.cc
diff --git a/cc/test/fake_mask_layer_impl.cc b/cc/test/fake_mask_layer_impl.cc
index 31c1139fd64e9f1d140e31e5720be19806e94f1b..8c26c4afb2e09c7ff02f962780ee2cea234be1d2 100644
--- a/cc/test/fake_mask_layer_impl.cc
+++ b/cc/test/fake_mask_layer_impl.cc
@@ -28,8 +28,11 @@ std::unique_ptr<FakeMaskLayerImpl> FakeMaskLayerImpl::Create(
}
void FakeMaskLayerImpl::GetContentsResourceId(ResourceId* resource_id,
- gfx::Size* resource_size) const {
+ gfx::Size* resource_size,
+ gfx::SizeF* mask_uv_size) const {
*resource_id = 0;
+ *resource_size = resource_size_;
+ *mask_uv_size = gfx::SizeF(1.0f, 1.0f);
}
} // namespace cc
« no previous file with comments | « cc/test/fake_mask_layer_impl.h ('k') | cc/test/fake_picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698