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

Unified Diff: cc/trees/layer_tree_host_pixeltest_filters.cc

Issue 670183003: Update from chromium 62675d9fb31fb8cedc40f68e78e8445a74f362e7 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/trees/layer_tree_host_pixeltest_blending.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_filters.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_filters.cc b/cc/trees/layer_tree_host_pixeltest_filters.cc
index c0438ec5f81e6b96a2f88166da9a09e3f715ae17..40fa2c3e454b16d18a0ff7686a2a0f10115a6a26 100644
--- a/cc/trees/layer_tree_host_pixeltest_filters.cc
+++ b/cc/trees/layer_tree_host_pixeltest_filters.cc
@@ -49,7 +49,7 @@ TEST_F(LayerTreeHostFiltersPixelTest, BackgroundFilterBlur) {
small_error_allowed));
#endif
- RunPixelTest(GL_WITH_BITMAP,
+ RunPixelTest(PIXEL_TEST_GL,
background,
base::FilePath(FILE_PATH_LITERAL("background_filter_blur.png")));
}
@@ -90,10 +90,10 @@ TEST_F(LayerTreeHostFiltersPixelTest, BackgroundFilterBlurOutsets) {
small_error_allowed));
#endif
- RunPixelTest(GL_WITH_BITMAP,
- background,
- base::FilePath(FILE_PATH_LITERAL(
- "background_filter_blur_outsets.png")));
+ RunPixelTest(
+ PIXEL_TEST_GL,
+ background,
+ base::FilePath(FILE_PATH_LITERAL("background_filter_blur_outsets.png")));
}
TEST_F(LayerTreeHostFiltersPixelTest, BackgroundFilterBlurOffAxis) {
@@ -151,10 +151,10 @@ TEST_F(LayerTreeHostFiltersPixelTest, BackgroundFilterBlurOffAxis) {
small_error_allowed));
#endif
- RunPixelTest(GL_WITH_BITMAP,
- background,
- base::FilePath(FILE_PATH_LITERAL(
- "background_filter_blur_off_axis.png")));
+ RunPixelTest(
+ PIXEL_TEST_GL,
+ background,
+ base::FilePath(FILE_PATH_LITERAL("background_filter_blur_off_axis.png")));
}
class LayerTreeHostFiltersScaledPixelTest
@@ -207,28 +207,20 @@ class LayerTreeHostFiltersScaledPixelTest
float device_scale_factor_;
};
-TEST_F(LayerTreeHostFiltersScaledPixelTest, StandardDpi_GLBitmap) {
- RunPixelTestType(100, 1.f, GL_WITH_BITMAP);
-}
-
-TEST_F(LayerTreeHostFiltersScaledPixelTest, StandardDpi_GLDefault) {
- RunPixelTestType(100, 1.f, GL_WITH_DEFAULT);
+TEST_F(LayerTreeHostFiltersScaledPixelTest, StandardDpi_GL) {
+ RunPixelTestType(100, 1.f, PIXEL_TEST_GL);
}
TEST_F(LayerTreeHostFiltersScaledPixelTest, StandardDpi_Software) {
- RunPixelTestType(100, 1.f, SOFTWARE_WITH_BITMAP);
-}
-
-TEST_F(LayerTreeHostFiltersScaledPixelTest, HiDpi_GLBitmap) {
- RunPixelTestType(50, 2.f, GL_WITH_BITMAP);
+ RunPixelTestType(100, 1.f, PIXEL_TEST_SOFTWARE);
}
-TEST_F(LayerTreeHostFiltersScaledPixelTest, HiDpi_GLDefault) {
- RunPixelTestType(50, 2.f, GL_WITH_DEFAULT);
+TEST_F(LayerTreeHostFiltersScaledPixelTest, HiDpi_GL) {
+ RunPixelTestType(50, 2.f, PIXEL_TEST_GL);
}
TEST_F(LayerTreeHostFiltersScaledPixelTest, HiDpi_Software) {
- RunPixelTestType(50, 2.f, SOFTWARE_WITH_BITMAP);
+ RunPixelTestType(50, 2.f, PIXEL_TEST_SOFTWARE);
}
class ImageFilterClippedPixelTest : public LayerTreeHostFiltersPixelTest {
@@ -278,11 +270,11 @@ class ImageFilterClippedPixelTest : public LayerTreeHostFiltersPixelTest {
};
TEST_F(ImageFilterClippedPixelTest, ImageFilterClipped_GL) {
- RunPixelTestType(GL_WITH_BITMAP);
+ RunPixelTestType(PIXEL_TEST_GL);
}
TEST_F(ImageFilterClippedPixelTest, ImageFilterClipped_Software) {
- RunPixelTestType(SOFTWARE_WITH_BITMAP);
+ RunPixelTestType(PIXEL_TEST_SOFTWARE);
}
} // namespace
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_blending.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698