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

Unified Diff: cc/trees/layer_tree_host_pixeltest_masks.cc

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 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_filters.cc ('k') | cc/trees/layer_tree_host_unittest.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_masks.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_masks.cc b/cc/trees/layer_tree_host_pixeltest_masks.cc
index 7b0e53bab7cb46ca4345a9e8d86b68e46056b20d..b9491bb816e7be0854bf63d2643f0616ce59799c 100644
--- a/cc/trees/layer_tree_host_pixeltest_masks.cc
+++ b/cc/trees/layer_tree_host_pixeltest_masks.cc
@@ -12,6 +12,9 @@
#if !defined(OS_ANDROID)
+// TODO(enne): these time out on Windows. http://crbug.com/435632
+#if !defined(OS_WIN)
+
namespace cc {
namespace {
@@ -57,9 +60,6 @@ class MaskContentLayerClient : public ContentLayerClient {
gfx::Size bounds_;
};
-// TODO(enne): these time out on Windows. http://crbug.com/435632
-#if !defined(OS_WIN)
-
TEST_P(LayerTreeHostMasksPixelTest, MaskOfLayer) {
scoped_refptr<SolidColorLayer> background = CreateSolidColorLayer(
gfx::Rect(200, 200), SK_ColorWHITE);
@@ -280,8 +280,6 @@ TEST_P(LayerTreeHostMasksPixelTest, MaskOfReplicaOfClippedLayer) {
"mask_of_replica_of_clipped_layer.png")));
}
-#endif // !defined(OS_WIN)
-
class CheckerContentLayerClient : public ContentLayerClient {
public:
CheckerContentLayerClient(const gfx::Size& bounds,
@@ -397,8 +395,8 @@ TEST_P(LayerTreeHostMasksForBackgroundFiltersPixelTest,
float percentage_pixels_large_error = 2.5f; // 2.5%, ~1600px / (256*256)
float percentage_pixels_small_error = 0.0f;
- float average_error_allowed_in_bad_pixels = 60.0f;
- int large_error_allowed = 100;
+ float average_error_allowed_in_bad_pixels = 100.0f;
+ int large_error_allowed = 256;
int small_error_allowed = 0;
pixel_comparator_.reset(new FuzzyPixelComparator(
true, // discard_alpha
@@ -467,4 +465,5 @@ TEST_P(LayerTreeHostMasksForBackgroundFiltersPixelTest,
} // namespace
} // namespace cc
-#endif // OS_ANDROID
+#endif // !defined(OS_WIN)
+#endif // !defined(OS_ANDROID)
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_filters.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698