Index: cc/test/pixel_comparator.h |
diff --git a/cc/test/pixel_comparator.h b/cc/test/pixel_comparator.h |
index d51eff09eacb03543f8a40d87c62b2882a480bdd..0f24da0043f84914476ef99ed488fbc65a39490f 100644 |
--- a/cc/test/pixel_comparator.h |
+++ b/cc/test/pixel_comparator.h |
@@ -69,6 +69,13 @@ class FuzzyPixelComparator : public PixelComparator { |
int small_error_threshold_; |
}; |
+// All pixels can be off by one, but any more than that is an error. |
+class FuzzyPixelOffByOneComparator : public FuzzyPixelComparator { |
+ public: |
+ explicit FuzzyPixelOffByOneComparator(bool discard_alpha) |
+ : FuzzyPixelComparator(discard_alpha, 100.f, 0.f, 1.f, 1, 0) {} |
+}; |
+ |
} // namespace cc |
#endif // CC_TEST_PIXEL_COMPARATOR_H_ |