Chromium Code Reviews| Index: cc/test/pixel_test_utils.h |
| diff --git a/cc/test/pixel_test_utils.h b/cc/test/pixel_test_utils.h |
| index 2ee2ecd6497bd0087bb6f2a5331e5d6e07b7663c..907261243fec0b0e6f53e71fcf6799d667fd324e 100644 |
| --- a/cc/test/pixel_test_utils.h |
| +++ b/cc/test/pixel_test_utils.h |
| @@ -6,6 +6,7 @@ |
| #define CC_TEST_PIXEL_TEST_UTILS_H_ |
| #include "base/files/file_path.h" |
| +#include "cc/test/pixel_comparator.h" |
| class SkBitmap; |
| @@ -20,10 +21,10 @@ bool WritePNGFile(const SkBitmap& bitmap, const base::FilePath& file_path, |
| // should have been encoded using |gfx::PNGCodec::Encode|. |
| bool ReadPNGFile(const base::FilePath& file_path, SkBitmap* bitmap); |
| -// Compares with a PNG file on disk, and returns true if it is the same as |
| -// the given image. |ref_img_path| is absolute. |
| -bool IsSameAsPNGFile(const SkBitmap& gen_bmp, base::FilePath ref_img_path, |
| - bool discard_transparency); |
| +// Compares with a PNG file on disk using the given PixelComparator, and returns |
| +// true if the comparator returns a match. |ref_img_path| is absolute. |
| +bool MatchesPNGFile(const SkBitmap& gen_bmp, base::FilePath ref_img_path, |
|
danakj
2013/03/28 22:17:25
nit: one argument per line
|
| + const PixelComparator& comparator); |
| } // namespace cc |