diff options
author | 2015-09-01 12:22:32 -0700 | |
---|---|---|
committer | 2015-09-01 12:22:32 -0700 | |
commit | 86e90fafe17321964d975e9a6e2f242df280e74e (patch) | |
tree | 566f0f6f3698e406980afcfe0e52a3b525198b2d /src/image/SkImage_Base.h | |
parent | 12d40c18b9f624f3a6b674f10a11504fd3ea5642 (diff) |
add preroll to image, for chrome's warmup pass
BUG=skia:
Review URL: https://codereview.chromium.org/1301373007
Diffstat (limited to 'src/image/SkImage_Base.h')
-rw-r--r-- | src/image/SkImage_Base.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h index 2e3fb9a34a..01b39be383 100644 --- a/src/image/SkImage_Base.h +++ b/src/image/SkImage_Base.h @@ -51,7 +51,9 @@ public: // Default impl calls onDraw virtual bool onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY) const; - + + virtual void onPreroll(GrContext*) const {} + virtual GrTexture* getTexture() const { return nullptr; } // return a read-only copy of the pixels. We promise to not modify them, |