diff options
author | Robert Phillips <robertphillips@google.com> | 2017-01-31 11:31:39 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-31 17:22:38 +0000 |
commit | 6de99041f13e87ed440f7db13a07693c6c4c461a (patch) | |
tree | 560cfdcc0efb88cd82f04b2c9b0219f2f3d07c71 /src/image/SkImage_Base.h | |
parent | 6d3b7aaf79b2cbacdf00bafc15ded2dfd2fa000a (diff) |
Reduce use of SkImage_Base::peekTexture
Change-Id: I079093c9706df4911d47fba04b786e59240e8cb4
Reviewed-on: https://skia-review.googlesource.com/7792
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/image/SkImage_Base.h')
-rw-r--r-- | src/image/SkImage_Base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h index e2a4e40410..42493b2351 100644 --- a/src/image/SkImage_Base.h +++ b/src/image/SkImage_Base.h @@ -14,6 +14,7 @@ #if SK_SUPPORT_GPU #include "GrTexture.h" + #include "GrTextureProxy.h" #endif #include <new> @@ -45,6 +46,7 @@ public: virtual GrTexture* peekTexture() const { return nullptr; } #if SK_SUPPORT_GPU + virtual sk_sp<GrTextureProxy> asTextureProxyRef() const { return nullptr; } virtual sk_sp<GrTexture> refPinnedTexture(uint32_t* uniqueID) const { return nullptr; } #endif virtual SkImageCacherator* peekCacherator() const { return nullptr; } |