diff options
author | 2012-12-18 22:24:03 +0000 | |
---|---|---|
committer | 2012-12-18 22:24:03 +0000 | |
commit | 84f548cc9daf77bb3ee7c59ad986eebe9ad1168e (patch) | |
tree | 48a9440e316e3034e861edcf5af3199df32164c9 /tools/PictureRenderer.h | |
parent | 6d0673042f6225f16fc5ea91cb1fdf4c8e96d880 (diff) |
Flags for render_pictures: verify, clone and writeWholeImage:
1) flag to verify PNGs produced by render_picture that produce the same pixels
as simple renderer.
2) flag to write one single image (in tile we write individual tiles) - this
will help running skdiff also
3) flag to clone the picture before rendering
git-svn-id: http://skia.googlecode.com/svn/trunk@6890 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/PictureRenderer.h')
-rw-r--r-- | tools/PictureRenderer.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h index 262e8997e6..5d6c5166a2 100644 --- a/tools/PictureRenderer.h +++ b/tools/PictureRenderer.h @@ -96,7 +96,7 @@ public: * @return bool True if rendering succeeded and, if path is non-null, the output was * successfully written to a file. */ - virtual bool render(const SkString* path) = 0; + virtual bool render(const SkString* path, SkBitmap** out = NULL) = 0; /** * Called once finished with a particular SkPicture, before calling init again, and before @@ -245,7 +245,7 @@ private: * to time. */ class RecordPictureRenderer : public PictureRenderer { - virtual bool render(const SkString*) SK_OVERRIDE; + virtual bool render(const SkString*, SkBitmap** out = NULL) SK_OVERRIDE; virtual SkString getPerIterTimeFormat() SK_OVERRIDE { return SkString("%.4f"); } @@ -260,7 +260,7 @@ private: class PipePictureRenderer : public PictureRenderer { public: - virtual bool render(const SkString*) SK_OVERRIDE; + virtual bool render(const SkString*, SkBitmap** out = NULL) SK_OVERRIDE; private: virtual SkString getConfigNameInternal() SK_OVERRIDE; @@ -272,7 +272,7 @@ class SimplePictureRenderer : public PictureRenderer { public: virtual void init(SkPicture* pict) SK_OVERRIDE; - virtual bool render(const SkString*) SK_OVERRIDE; + virtual bool render(const SkString*, SkBitmap** out = NULL) SK_OVERRIDE; private: virtual SkString getConfigNameInternal() SK_OVERRIDE; @@ -291,7 +291,7 @@ public: * created for each tile, named "path0.png", "path1.png", etc. * Multithreaded mode currently does not support writing to a file. */ - virtual bool render(const SkString* path) SK_OVERRIDE; + virtual bool render(const SkString* path, SkBitmap** out = NULL) SK_OVERRIDE; virtual void end() SK_OVERRIDE; @@ -410,7 +410,7 @@ public: /** * Behaves like TiledPictureRenderer::render(), only using multiple threads. */ - virtual bool render(const SkString* path) SK_OVERRIDE; + virtual bool render(const SkString* path, SkBitmap** out = NULL) SK_OVERRIDE; virtual void end() SK_OVERRIDE; @@ -435,7 +435,7 @@ class PlaybackCreationRenderer : public PictureRenderer { public: virtual void setup() SK_OVERRIDE; - virtual bool render(const SkString*) SK_OVERRIDE; + virtual bool render(const SkString*, SkBitmap** out = NULL) SK_OVERRIDE; virtual SkString getPerIterTimeFormat() SK_OVERRIDE { return SkString("%.4f"); } |