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 /tools/sk_app | |
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 'tools/sk_app')
-rw-r--r-- | tools/sk_app/VulkanWindowContext.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/sk_app/VulkanWindowContext.cpp b/tools/sk_app/VulkanWindowContext.cpp index d7839bc189..b39c564eca 100644 --- a/tools/sk_app/VulkanWindowContext.cpp +++ b/tools/sk_app/VulkanWindowContext.cpp @@ -293,14 +293,14 @@ void VulkanWindowContext::createBuffers(VkFormat format, SkColorType colorType) info.fFormat = format; info.fLevelCount = 1; - GrBackendTexture backendTex(fWidth, fHeight, info); - - fSurfaces[i] = SkSurface::MakeFromBackendTextureAsRenderTarget(fContext.get(), backendTex, - kTopLeft_GrSurfaceOrigin, - fSampleCount, - colorType, - fDisplayParams.fColorSpace, - &fSurfaceProps); + GrBackendRenderTarget backendRT(fWidth, fHeight, fSampleCount, info); + + fSurfaces[i] = SkSurface::MakeFromBackendRenderTarget(fContext.get(), + backendRT, + kTopLeft_GrSurfaceOrigin, + colorType, + fDisplayParams.fColorSpace, + &fSurfaceProps); } // create the command pool for the command buffers |