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

Unified Diff: cc/test/pixel_test.h

Issue 12558003: cc: Made image comparison for pixel tests error tolerant. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to tip of tree. Added discard_alpha flag. Created 7 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
Index: cc/test/pixel_test.h
diff --git a/cc/test/pixel_test.h b/cc/test/pixel_test.h
index 3762d60692e4384a33f08d177e4d04e74ec2ce9d..e915961097335a1c9d0b97ff86ef6098d45d4f03 100644
--- a/cc/test/pixel_test.h
+++ b/cc/test/pixel_test.h
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/file_util.h"
+#include "cc/test/pixel_comparator.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/size.h"
@@ -22,7 +23,7 @@ class PixelTest : public testing::Test {
virtual void SetUp() OVERRIDE;
bool PixelsMatchReference(const base::FilePath& ref_file,
- bool discard_transparency);
+ const PixelComparator& comparator);
gfx::Size device_viewport_size_;
scoped_ptr<OutputSurface> output_surface_;

Powered by Google App Engine
This is Rietveld 408576698