summaryrefslogtreecommitdiffstats
path: root/cc/test/pixel_test_utils.h
diff options
context:
space:
mode:
authorsohan.jyoti@samsung.com <sohan.jyoti@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-09 21:23:45 +0000
committersohan.jyoti@samsung.com <sohan.jyoti@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-09 21:23:45 +0000
commitcea624b2e02b4c7d0d02b0b6aaec52a59091a471 (patch)
tree4c24034b1b79e58e99fd4c4c88dd3ccdef304c38 /cc/test/pixel_test_utils.h
parent4c40e06ed86c6512ddaa958fdb649d96c2a69286 (diff)
downloadchromium_src-cea624b2e02b4c7d0d02b0b6aaec52a59091a471.zip
chromium_src-cea624b2e02b4c7d0d02b0b6aaec52a59091a471.tar.gz
chromium_src-cea624b2e02b4c7d0d02b0b6aaec52a59091a471.tar.bz2
cc: For cc pixel test, create data url for pngs and print bounding rect.
This creates data url for both output and expected pngs, and prints the error bounding rect. BUG=236196 Review URL: https://codereview.chromium.org/371863002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/pixel_test_utils.h')
-rw-r--r--cc/test/pixel_test_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/test/pixel_test_utils.h b/cc/test/pixel_test_utils.h
index e581e95..d8ff7fd 100644
--- a/cc/test/pixel_test_utils.h
+++ b/cc/test/pixel_test_utils.h
@@ -21,6 +21,8 @@ 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);
+std::string GetPNGDataUrl(const SkBitmap& bitmap);
+
// 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,