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

Unified Diff: dm/DMUtil.h

Issue 32613003: DM: add --serialize (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: no-find-copies Created 7 years, 2 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
« no previous file with comments | « dm/DMSerializeTask.cpp ('k') | dm/DMUtil.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMUtil.h
diff --git a/dm/DMUtil.h b/dm/DMUtil.h
index c95f93346a2de425faa9a757b342b52d33707d5e..4dd9dd83aeb2dd48f8823ee4b48349027b0b6214 100644
--- a/dm/DMUtil.h
+++ b/dm/DMUtil.h
@@ -9,14 +9,26 @@
namespace DM {
-// underJoin("a", "b") -> "a_b"
-SkString underJoin(const char* a, const char* b);
+// UnderJoin("a", "b") -> "a_b"
+SkString UnderJoin(const char* a, const char* b);
-// png("a") -> "a.png"
-SkString png(SkString s);
+// Png("a") -> "a.png"
+SkString Png(SkString s);
// Roughly, expectations.match(GmResultDigest(bitmap)), but calculates the digest lazily.
-bool meetsExpectations(const skiagm::Expectations& expectations, const SkBitmap bitmap);
+bool MeetsExpectations(const skiagm::Expectations& expectations, const SkBitmap bitmap);
+
+// Draw gm to picture.
+void RecordPicture(skiagm::GM* gm, SkPicture* picture);
+
+// Prepare bitmap to have gm draw into it with this config.
+void SetupBitmap(const SkBitmap::Config config, skiagm::GM* gm, SkBitmap* bitmap);
+
+// Draw picture to bitmap.
+void DrawPicture(SkPicture* picture, SkBitmap* bitmap);
+
+// Are these identical bitmaps?
+bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b);
} // namespace DM
« no previous file with comments | « dm/DMSerializeTask.cpp ('k') | dm/DMUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698