diff options
author | Brian Salomon <bsalomon@google.com> | 2018-03-09 12:02:32 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-09 17:26:50 +0000 |
commit | afdc6b1ba9f5dba52916bd20b608f1f7c21c3160 (patch) | |
tree | 6edfa3a2d534c7edbbf3cc91a2f09e292bfda08d /include/gpu/GrBackendSurface.h | |
parent | 32929e0614742d03e067b117c71999c7ab1c902e (diff) |
Vulkan backend render targets don't allow client to specify stencil bits
We already always create the stencil buffer even for wrapped RTs.
Make VulkanWindowContext use SkSurface::MakeFromBackendRenderTarget.
Change-Id: I5df429d347331801954ec17cb9d75e323a7af345
Reviewed-on: https://skia-review.googlesource.com/113206
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu/GrBackendSurface.h')
-rw-r--r-- | include/gpu/GrBackendSurface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrBackendSurface.h b/include/gpu/GrBackendSurface.h index c2fc619d8a..a2df90cd0d 100644 --- a/include/gpu/GrBackendSurface.h +++ b/include/gpu/GrBackendSurface.h @@ -194,11 +194,13 @@ public: const GrGLFramebufferInfo& glInfo); #ifdef SK_VULKAN + /** Deprecated, use version that does not take stencil bits. */ GrBackendRenderTarget(int width, int height, int sampleCnt, int stencilBits, const GrVkImageInfo& vkInfo); + GrBackendRenderTarget(int width, int height, int sampleCnt, const GrVkImageInfo& vkInfo); #endif int width() const { return fWidth; } |