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

Unified Diff: src/core/SkCanvasDrawable.h

Issue 732653004: option to return drawable from recording (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « samplecode/SampleArc.cpp ('k') | src/core/SkCanvasDrawable.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCanvasDrawable.h
diff --git a/src/core/SkCanvasDrawable.h b/src/core/SkCanvasDrawable.h
index f189f2d2cc05a339d9ab8a30b4c978c3a42c95a1..bc5b4fd351e6513d08bf341c6e464e67d967991b 100644
--- a/src/core/SkCanvasDrawable.h
+++ b/src/core/SkCanvasDrawable.h
@@ -10,8 +10,8 @@
#include "SkRefCnt.h"
-class SkBBHFactory;
class SkCanvas;
+class SkPicture;
struct SkRect;
/**
@@ -32,10 +32,7 @@ public:
*/
void draw(SkCanvas*);
- SkPicture* newPictureSnapshot(SkBBHFactory* bbhFactory, uint32_t recordFlags);
- SkPicture* newPictureSnapshot() {
- return this->newPictureSnapshot(NULL, 0);
- }
+ SkPicture* newPictureSnapshot();
/**
* Return a unique value for this instance. If two calls to this return the same value,
@@ -63,7 +60,7 @@ public:
protected:
virtual SkRect onGetBounds() = 0;
virtual void onDraw(SkCanvas*) = 0;
- virtual SkPicture* onNewPictureSnapshot(SkBBHFactory*, uint32_t recordFlags);
+ virtual SkPicture* onNewPictureSnapshot();
private:
int32_t fGenerationID;
« no previous file with comments | « samplecode/SampleArc.cpp ('k') | src/core/SkCanvasDrawable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698