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

Unified Diff: mojo/converters/surfaces/tests/surface_unittest.cc

Issue 1135813005: Add detection for rotation and flip overlay transforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mojo surfaces unit test, chase flipped rename to TextureQuadState Created 5 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 | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | ui/gfx/overlay_transform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/surfaces/tests/surface_unittest.cc
diff --git a/mojo/converters/surfaces/tests/surface_unittest.cc b/mojo/converters/surfaces/tests/surface_unittest.cc
index 7e6d680d5fd3fb85eb9147d8919c493af10da420..167efd854945903cc2a5c4f6596dd6ad8fb2d63a 100644
--- a/mojo/converters/surfaces/tests/surface_unittest.cc
+++ b/mojo/converters/surfaces/tests/surface_unittest.cc
@@ -108,7 +108,7 @@ TEST_F(SurfaceLibQuadTest, TextureQuad) {
gfx::PointF uv_bottom_right(-7.f, 16.3f);
SkColor background_color = SK_ColorYELLOW;
float vertex_opacity[4] = {0.1f, 0.5f, 0.4f, 0.8f};
- bool flipped = false;
+ bool y_flipped = false;
bool nearest_neighbor = false;
texture_quad->SetAll(sqs,
rect,
@@ -121,7 +121,7 @@ TEST_F(SurfaceLibQuadTest, TextureQuad) {
uv_bottom_right,
background_color,
vertex_opacity,
- flipped,
+ y_flipped,
nearest_neighbor);
QuadPtr mojo_quad = Quad::From<cc::DrawQuad>(*texture_quad);
@@ -138,7 +138,7 @@ TEST_F(SurfaceLibQuadTest, TextureQuad) {
for (size_t i = 0; i < 4; ++i) {
EXPECT_EQ(vertex_opacity[i], mojo_texture_state->vertex_opacity[i]) << i;
}
- EXPECT_EQ(flipped, mojo_texture_state->flipped);
+ EXPECT_EQ(y_flipped, mojo_texture_state->y_flipped);
}
TEST_F(SurfaceLibQuadTest, TextureQuadEmptyVertexOpacity) {
@@ -275,7 +275,7 @@ TEST(SurfaceLibTest, RenderPass) {
gfx::PointF uv_bottom_right(-7.f, 16.3f);
SkColor background_color = SK_ColorYELLOW;
float vertex_opacity[4] = {0.1f, 0.5f, 0.4f, 0.8f};
- bool flipped = false;
+ bool y_flipped = false;
bool nearest_neighbor = false;
texture_quad->SetAll(sqs,
rect,
@@ -288,7 +288,7 @@ TEST(SurfaceLibTest, RenderPass) {
uv_bottom_right,
background_color,
vertex_opacity,
- flipped,
+ y_flipped,
nearest_neighbor);
PassPtr mojo_pass = Pass::From(*pass);
@@ -362,7 +362,7 @@ TEST(SurfaceLibTest, RenderPass) {
EXPECT_EQ(vertex_opacity[i], round_trip_texture_quad->vertex_opacity[i])
<< i;
}
- EXPECT_EQ(flipped, round_trip_texture_quad->flipped);
+ EXPECT_EQ(y_flipped, round_trip_texture_quad->y_flipped);
}
TEST(SurfaceLibTest, Mailbox) {
« no previous file with comments | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | ui/gfx/overlay_transform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698