diff options
author | Robert Phillips <robertphillips@google.com> | 2017-12-13 15:00:45 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-13 21:34:20 +0000 |
commit | b67821da87ffa711c07af75ee618b13dbccd6b7d (patch) | |
tree | 25179bbe05f6104f0314458f4cdd52475dfed73e /include | |
parent | 81d9f0d42eea5bb428808e0a48e4ef85aec45e10 (diff) |
Add GrBackendTexture & GrBackendRenderTarget access methods to GrTexture and GrRenderTarget
Change-Id: I627fcc2cab1d04169f49e33a6c17e161e9a9772a
Reviewed-on: https://skia-review.googlesource.com/84621
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrRenderTarget.h | 3 | ||||
-rw-r--r-- | include/gpu/GrTexture.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrRenderTarget.h b/include/gpu/GrRenderTarget.h index ff5eb0301d..93501db9af 100644 --- a/include/gpu/GrRenderTarget.h +++ b/include/gpu/GrRenderTarget.h @@ -15,6 +15,7 @@ class GrCaps; class GrRenderTargetOpList; class GrRenderTargetPriv; class GrStencilAttachment; +class GrBackendRenderTarget; /** * GrRenderTarget represents a 2D buffer of pixels that can be rendered to. @@ -104,6 +105,8 @@ public: */ virtual GrBackendObject getRenderTargetHandle() const = 0; + virtual GrBackendRenderTarget getBackendRenderTarget() const = 0; + // Checked when this object is asked to attach a stencil buffer. virtual bool canAttemptStencilAttachment() const = 0; diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h index c32c0e97a8..28f0d4b548 100644 --- a/include/gpu/GrTexture.h +++ b/include/gpu/GrTexture.h @@ -30,6 +30,8 @@ public: */ virtual GrBackendObject getTextureHandle() const = 0; + virtual GrBackendTexture getBackendTexture() const = 0; + /** * This function indicates that the texture parameters (wrap mode, filtering, ...) have been * changed externally to Skia. |