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

Unified Diff: cc/test/render_pass_test_common.cc

Issue 659683002: Include mask texture size in RenderPassDrawQuad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_mask_draw_quad_test
Patch Set: No ToEnclosedRect Created 6 years, 2 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/surfaces/surface_aggregator_test_helpers.cc ('k') | cc/test/render_pass_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/render_pass_test_common.cc
diff --git a/cc/test/render_pass_test_common.cc b/cc/test/render_pass_test_common.cc
index dd5bb901fd556ec68ed0dee2553b81640aeff6a4..a667dce43e1ea1a90a262cab8b9179ee15445c84 100644
--- a/cc/test/render_pass_test_common.cc
+++ b/cc/test/render_pass_test_common.cc
@@ -58,8 +58,9 @@ void TestRenderPass::AppendOneOfEveryQuadType(
ResourceProvider::TextureHintImmutable,
resource_provider->best_texture_format());
resource_provider->AllocateForTesting(resource4);
+ gfx::Size resource5_size(73, 26);
ResourceProvider::ResourceId resource5 = resource_provider->CreateResource(
- gfx::Size(73, 26),
+ resource5_size,
GL_CLAMP_TO_EDGE,
ResourceProvider::TextureHintImmutable,
resource_provider->best_texture_format());
@@ -124,7 +125,8 @@ void TestRenderPass::AppendOneOfEveryQuadType(
visible_rect,
child_pass,
resource5,
- gfx::RectF(),
+ gfx::Vector2dF(1.f, 1.f),
+ resource5_size,
FilterOperations(),
gfx::Vector2dF(),
FilterOperations());
@@ -136,7 +138,8 @@ void TestRenderPass::AppendOneOfEveryQuadType(
visible_rect,
child_pass,
resource5,
- gfx::RectF(),
+ gfx::Vector2dF(1.f, 1.f),
+ resource5_size,
FilterOperations(),
gfx::Vector2dF(),
FilterOperations());
« no previous file with comments | « cc/surfaces/surface_aggregator_test_helpers.cc ('k') | cc/test/render_pass_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698