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

Unified Diff: cc/output/shader_unittest.cc

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/output/shader.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/shader_unittest.cc
diff --git a/cc/output/shader_unittest.cc b/cc/output/shader_unittest.cc
index 675e47fb26b2079f5769985a6d478b60b21635d4..4fd696f55c4a04e46176da5c66f63cf7615dc8fa 100644
--- a/cc/output/shader_unittest.cc
+++ b/cc/output/shader_unittest.cc
@@ -27,32 +27,24 @@ TEST(ShaderTest, HighpThresholds) {
gfx::Size bigSize(2560, 2560);
threshold_min = 0;
- EXPECT_EQ(TEX_COORD_PRECISION_MEDIUM,
- TexCoordPrecisionRequired(&stub_gl, &threshold_cache, threshold_min,
- closePoint));
- EXPECT_EQ(TEX_COORD_PRECISION_MEDIUM,
- TexCoordPrecisionRequired(&stub_gl, &threshold_cache, threshold_min,
- smallSize));
- EXPECT_EQ(TEX_COORD_PRECISION_HIGH,
- TexCoordPrecisionRequired(&stub_gl, &threshold_cache, threshold_min,
- farPoint));
- EXPECT_EQ(TEX_COORD_PRECISION_HIGH,
- TexCoordPrecisionRequired(&stub_gl, &threshold_cache, threshold_min,
- bigSize));
+ EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired(
+ &stub_gl, &threshold_cache, threshold_min, closePoint));
+ EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired(
+ &stub_gl, &threshold_cache, threshold_min, smallSize));
+ EXPECT_EQ(TexCoordPrecisionHigh, TexCoordPrecisionRequired(
+ &stub_gl, &threshold_cache, threshold_min, farPoint));
+ EXPECT_EQ(TexCoordPrecisionHigh, TexCoordPrecisionRequired(
+ &stub_gl, &threshold_cache, threshold_min, bigSize));
threshold_min = 3000;
- EXPECT_EQ(TEX_COORD_PRECISION_MEDIUM,
- TexCoordPrecisionRequired(&stub_gl, &threshold_cache, threshold_min,
- closePoint));
- EXPECT_EQ(TEX_COORD_PRECISION_MEDIUM,
- TexCoordPrecisionRequired(&stub_gl, &threshold_cache, threshold_min,
- smallSize));
- EXPECT_EQ(TEX_COORD_PRECISION_MEDIUM,
- TexCoordPrecisionRequired(&stub_gl, &threshold_cache, threshold_min,
- farPoint));
- EXPECT_EQ(TEX_COORD_PRECISION_MEDIUM,
- TexCoordPrecisionRequired(&stub_gl, &threshold_cache, threshold_min,
- bigSize));
+ EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired(
+ &stub_gl, &threshold_cache, threshold_min, closePoint));
+ EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired(
+ &stub_gl, &threshold_cache, threshold_min, smallSize));
+ EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired(
+ &stub_gl, &threshold_cache, threshold_min, farPoint));
+ EXPECT_EQ(TexCoordPrecisionMedium, TexCoordPrecisionRequired(
+ &stub_gl, &threshold_cache, threshold_min, bigSize));
}
} // namespace cc
« no previous file with comments | « cc/output/shader.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698