summaryrefslogtreecommitdiffstats
path: root/cc/test/pixel_test_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test/pixel_test_utils.h')
-rw-r--r--cc/test/pixel_test_utils.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/test/pixel_test_utils.h b/cc/test/pixel_test_utils.h
index 29dad87..2ee2ecd 100644
--- a/cc/test/pixel_test_utils.h
+++ b/cc/test/pixel_test_utils.h
@@ -13,7 +13,8 @@ namespace cc {
// Encodes a bitmap into a PNG and write to disk. Returns true on success. The
// parent directory does not have to exist.
-bool WritePNGFile(const SkBitmap& bitmap, const base::FilePath& file_path);
+bool WritePNGFile(const SkBitmap& bitmap, const base::FilePath& file_path,
+ bool discard_transparency);
// Reads and decodes a PNG image to a bitmap. Returns true on success. The PNG
// should have been encoded using |gfx::PNGCodec::Encode|.
@@ -21,7 +22,8 @@ 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 IsSameAsPNGFile(const SkBitmap& gen_bmp, base::FilePath ref_img_path,
+ bool discard_transparency);
} // namespace cc