diff options
author | Robert Phillips <robertphillips@google.com> | 2017-05-12 14:49:16 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-12 19:20:22 +0000 |
commit | 8a02f65c5cc16d010f188c34861b03d96cb8ec10 (patch) | |
tree | e90adb6d5167987d1b93fb3c0ba2511ff435bdc0 /src/gpu/GrSurfaceProxyPriv.h | |
parent | 177266339c3aa6dda4fa2912af9eaa8e8206f78f (diff) |
Switch ImageStorageAccess over to GrTextureProxies
Split out of: https://skia-review.googlesource.com/c/10484/ (Omnibus: Push instantiation of GrTextures later (post TextureSampler))
Change-Id: I341de6ae121620d30e50bff21450878a18bdf4f2
Reviewed-on: https://skia-review.googlesource.com/16714
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrSurfaceProxyPriv.h')
-rw-r--r-- | src/gpu/GrSurfaceProxyPriv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrSurfaceProxyPriv.h b/src/gpu/GrSurfaceProxyPriv.h index 24c69939b7..0d0da4ec0d 100644 --- a/src/gpu/GrSurfaceProxyPriv.h +++ b/src/gpu/GrSurfaceProxyPriv.h @@ -17,7 +17,7 @@ class GrSurfaceProxyPriv { public: // If the proxy is already instantiated, return its backing GrTexture; if not, // return null - const GrTexture* peekTexture() const { + GrTexture* peekTexture() const { return fProxy->fTarget ? fProxy->fTarget->asTexture() : nullptr; } |