aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImage_Base.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-09-01 12:22:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-01 12:22:32 -0700
commit86e90fafe17321964d975e9a6e2f242df280e74e (patch)
tree566f0f6f3698e406980afcfe0e52a3b525198b2d /src/image/SkImage_Base.h
parent12d40c18b9f624f3a6b674f10a11504fd3ea5642 (diff)
add preroll to image, for chrome's warmup pass
Diffstat (limited to 'src/image/SkImage_Base.h')
-rw-r--r--src/image/SkImage_Base.h4
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,