diff options
author | Derek Sollenberger <djsollen@google.com> | 2016-11-09 11:25:13 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-09 16:56:33 +0000 |
commit | d3ea9b75f7e675f0f57545694cd4add43b8e2f4b (patch) | |
tree | 767c8551919c7a053096ed495d23cdfe94caa47e /src/image/SkImage_Base.h | |
parent | 3ce89dad5bc324dad9c4b77393e16f3bcb7396a7 (diff) |
Enable SkImage_pinAsTexture to signal if the operation succeeded.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4488
Change-Id: Id667f385b172e4a56faa9324066f57295af30ef3
Reviewed-on: https://skia-review.googlesource.com/4488
Commit-Queue: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/image/SkImage_Base.h')
-rw-r--r-- | src/image/SkImage_Base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h index 3a4aabd4b6..7fbe97deac 100644 --- a/src/image/SkImage_Base.h +++ b/src/image/SkImage_Base.h @@ -73,7 +73,7 @@ public: fAddedToCache.store(true); } - virtual void onPinAsTexture(GrContext*) const {} + virtual bool onPinAsTexture(GrContext*) const { return false; } virtual void onUnpinAsTexture(GrContext*) const {} private: |