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) { |