diff options
author | Brian Salomon <bsalomon@google.com> | 2017-08-31 15:57:32 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-31 15:57:42 +0000 |
commit | 6df4d6be0d025211400de6a910e17f2a87219887 (patch) | |
tree | 6ce435acf8b6c669ecf5d350e2d4670dea08b630 /site/user/special | |
parent | 2dafbd796d3dadfbec313577af525ce699ae1479 (diff) |
Revert "Revert "Revert "Remove GrBackendRenderTargetDesc in favor of GrBackendRenderTarget."""
This reverts commit 71554bc256b705fe959b7aa2fb2f24ed48782362.
Reason for revert: Google3
Original change's description:
> Revert "Revert "Remove GrBackendRenderTargetDesc in favor of GrBackendRenderTarget.""
>
> This reverts commit 807371c15bd742efb98a9df6e1dee73e8bda8af5.
>
> Docs-Preview: https://skia.org/?cl=40260
> Change-Id: I28e0434c455155ff39a5aaa4141abdf442474e87
> Reviewed-on: https://skia-review.googlesource.com/40260
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>
TBR=egdaniel@google.com,bsalomon@google.com
Change-Id: Ifdfa896a70db69935473276d12dce54de5c6b6f7
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/41500
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'site/user/special')
-rw-r--r-- | site/user/special/vulkan.md | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/site/user/special/vulkan.md b/site/user/special/vulkan.md index 14f44b846a..bba6968a95 100644 --- a/site/user/special/vulkan.md +++ b/site/user/special/vulkan.md @@ -33,16 +33,14 @@ To create a GrContext that is backed by Vulkan the client creates a Vulkan devic sk_sp<GrContext> context = GrContext::MakeVulkan(vkBackendContext); -When using the Vulkan backend, GrVkImageInfo is used to construct GrBackendTexture -and GrBackendRenderTarget objects that in turn are used to create SkSurface and SkImage -objects that refer to VkImages created by the Skia client. +When using the Vulkan backend the GrBackendObject field in +GrBackendRenderTargetDesc and GrBackendTextureDesc is interpeted as a pointer +to a GrVkImageInfo object. GrVkImageInfo specifies a VkImage and associated +state (tiling, layout, format, etc). This allows the client to import +externally created Vulkan images as destinations for Skia rendering via +SkSurface factory functions or for to composite Skia rendered content using +SkImage::getTextureHandle(). -The GrBackendObject returned by SkImage::getTextureHandle(), -SkSurface::getTextureHandle(), and SkSurface::getRenderTargetHandle() should be -interpreted as a GrVkImageInfo*. This allows a client to get the backing VkImage -of a SkImage or SkSurface. - -GrVkImageInfo specifies a VkImage and associated state (tiling, layout, format, etc). After getting a GrVkImageInfo* via getTextureHandle() or getRenderTargetHandle(), the client should check the fImageLayout field to know what layout Skia left the VkImage in before using the VkImage. If the client |