Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: src/gpu/vk/GrVkRenderTarget.cpp

Issue 2299663002: In VulkanWindowContext add check to see if ganesh changed the layout of the image. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: spelling Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/viewer/sk_app/VulkanWindowContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkRenderTarget.cpp
diff --git a/src/gpu/vk/GrVkRenderTarget.cpp b/src/gpu/vk/GrVkRenderTarget.cpp
index 6d95ba0d00a294daa9bb30a811da0e2982986455..d6895d25fc757817bb9b6cdae22ef11b148e4c10 100644
--- a/src/gpu/vk/GrVkRenderTarget.cpp
+++ b/src/gpu/vk/GrVkRenderTarget.cpp
@@ -353,8 +353,10 @@ void GrVkRenderTarget::onAbandon() {
GrBackendObject GrVkRenderTarget::getRenderTargetHandle() const {
- // Currently just passing back the pointer to the main Image::Resource as the handle
- return (GrBackendObject)&fResource;
+ // If the render target is multisampled, we currently return the ImageInfo for the resolved
+ // image. If we only wrap the msaa target (currently not implemented) we should return a handle
+ // to that instead.
+ return (GrBackendObject)&fInfo;
}
const GrVkResource* GrVkRenderTarget::stencilImageResource() const {
« no previous file with comments | « no previous file | tools/viewer/sk_app/VulkanWindowContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698