summaryrefslogtreecommitdiffstats
path: root/cc/test/pixel_test_utils.h
diff options
context:
space:
mode:
authorclholgat@chromium.org <clholgat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-26 22:47:24 +0000
committerclholgat@chromium.org <clholgat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-26 22:47:24 +0000
commit1ab91054908884d72b418b24e533dc02fc3dc46e (patch)
treef53fb0078a105ada06bb9a2eaaa3ebccdacfe87c /cc/test/pixel_test_utils.h
parent833c1dab9e02316e31804e3049169b7ceb5c6495 (diff)
downloadchromium_src-1ab91054908884d72b418b24e533dc02fc3dc46e.zip
chromium_src-1ab91054908884d72b418b24e533dc02fc3dc46e.tar.gz
chromium_src-1ab91054908884d72b418b24e533dc02fc3dc46e.tar.bz2
Optimize SkColorFilters when drawing RenderPassQuads
Pull the color transformation matrix from the SkImageFilter if possible and apply with a shader. Handles all permutations of shaders. BUG=168719 Review URL: https://chromiumcodereview.appspot.com/12803003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190786 0039d316-1c4b-4281-b951-d872f2087c98
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