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

Unified Diff: include/core/SkTileGridPicture.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: include/core/SkTileGridPicture.h
===================================================================
--- include/core/SkTileGridPicture.h (revision 14159)
+++ include/core/SkTileGridPicture.h (working copy)
@@ -51,6 +51,23 @@
private:
int fXTileCount, fYTileCount;
TileGridInfo fInfo;
+
+ typedef SkPicture INHERITED;
};
+class SkTileGridPictureFactory : public SkPictureFactory {
+public:
+ SkTileGridPictureFactory(const SkTileGridPicture::TileGridInfo& info) : fInfo(info) { }
+
+ virtual SkPicture* create(int width, int height) SK_OVERRIDE {
+ return SkNEW_ARGS(SkTileGridPicture, (width, height, fInfo));
+ }
+
+protected:
+ SkTileGridPicture::TileGridInfo fInfo;
+
+private:
+ typedef SkPictureFactory INHERITED;
+};
+
#endif
« no previous file with comments | « include/core/SkPicture.h ('k') | samplecode/SampleAll.cpp » ('j') | samplecode/SampleTiling.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698