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

Unified Diff: cc/output/renderer_pixeltest.cc

Issue 2400033004: cc: custom bilinear filtering for YUV quad.
Patch Set: fix SAMPLER_TYPE_2D_RECT logic Created 4 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/output/gl_renderer_unittest.cc ('k') | cc/output/shader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/renderer_pixeltest.cc
diff --git a/cc/output/renderer_pixeltest.cc b/cc/output/renderer_pixeltest.cc
index c62ae058d00de3a93b6a68d2ecc1a2a8cbc5a1c1..ee20e1ab9a3f9c183f87dc4e7a7a785ebe2a5e48 100644
--- a/cc/output/renderer_pixeltest.cc
+++ b/cc/output/renderer_pixeltest.cc
@@ -1119,10 +1119,12 @@ TEST_P(VideoGLRendererPixelHiLoTest, SimpleYUVRect) {
RenderPassList pass_list;
pass_list.push_back(std::move(pass));
- EXPECT_TRUE(
- this->RunPixelTest(&pass_list,
- base::FilePath(FILE_PATH_LITERAL("yuv_stripes.png")),
- FuzzyPixelOffByOneComparator(true)));
+ base::FilePath file_path =
+ base::FilePath(FILE_PATH_LITERAL("yuv_stripes.png"));
+ if (highbit)
+ file_path = base::FilePath(FILE_PATH_LITERAL("yuv_stripes_highbit.png"));
+ EXPECT_TRUE(this->RunPixelTest(&pass_list, file_path,
+ FuzzyPixelOffByOneComparator(true)));
}
TEST_P(VideoGLRendererPixelHiLoTest, ClippedYUVRect) {
@@ -1145,9 +1147,14 @@ TEST_P(VideoGLRendererPixelHiLoTest, ClippedYUVRect) {
RenderPassList pass_list;
pass_list.push_back(std::move(pass));
- EXPECT_TRUE(this->RunPixelTest(
- &pass_list, base::FilePath(FILE_PATH_LITERAL("yuv_stripes_clipped.png")),
- FuzzyPixelOffByOneComparator(true)));
+ base::FilePath file_path =
+ base::FilePath(FILE_PATH_LITERAL("yuv_stripes_clipped.png"));
+ if (highbit) {
+ file_path =
+ base::FilePath(FILE_PATH_LITERAL("yuv_stripes_clipped_highbit.png"));
+ }
+ EXPECT_TRUE(this->RunPixelTest(&pass_list, file_path,
+ FuzzyPixelOffByOneComparator(true)));
}
TEST_F(VideoGLRendererPixelHiLoTest, OffsetYUVRect) {
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/shader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698