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 |