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

Unified Diff: dm/DMUtil.h

Issue 214953003: split SkPictureRecorder out of SkPicture (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: update to ToT (again) Created 6 years, 8 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
Index: dm/DMUtil.h
===================================================================
--- dm/DMUtil.h (revision 14159)
+++ dm/DMUtil.h (working copy)
@@ -6,6 +6,8 @@
#include "SkString.h"
#include "gm_expectations.h"
+class SkPictureFactory;
+
// Small free functions used in more than one place in DM.
namespace DM {
@@ -13,8 +15,10 @@
// UnderJoin("a", "b") -> "a_b"
SkString UnderJoin(const char* a, const char* b);
-// Draw gm to picture. Passes recordFlags to SkPicture::beginRecording().
-void RecordPicture(skiagm::GM* gm, SkPicture* picture, uint32_t recordFlags = 0);
+// Draw gm to picture. Passes recordFlags to SkPictureRecorder::beginRecording().
+SkPicture* RecordPicture(skiagm::GM* gm,
+ uint32_t recordFlags = 0,
+ SkPictureFactory* factory = NULL);
// Prepare bitmap to have gm or bench draw into it with this config.
// TODO(mtklein): make SkBenchmark::getSize()/GM::getISize() const.
« no previous file with comments | « dm/DMTileGridTask.cpp ('k') | dm/DMUtil.cpp » ('j') | samplecode/SampleTiling.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698