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

Side by Side Diff: src/gpu/vk/GrVkRenderTarget.h

Issue 2104353002: Add discard support to Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/gpu/vk/GrVkGpuCommandBuffer.cpp ('k') | tests/GpuLayerCacheTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef GrVkRenderTarget_DEFINED 9 #ifndef GrVkRenderTarget_DEFINED
10 #define GrVkRenderTarget_DEFINED 10 #define GrVkRenderTarget_DEFINED
(...skipping 30 matching lines...) Expand all
41 ~GrVkRenderTarget() override; 41 ~GrVkRenderTarget() override;
42 42
43 const GrVkFramebuffer* framebuffer() const { return fFramebuffer; } 43 const GrVkFramebuffer* framebuffer() const { return fFramebuffer; }
44 const GrVkImageView* colorAttachmentView() const { return fColorAttachmentVi ew; } 44 const GrVkImageView* colorAttachmentView() const { return fColorAttachmentVi ew; }
45 const GrVkResource* msaaImageResource() const { 45 const GrVkResource* msaaImageResource() const {
46 if (fMSAAImage) { 46 if (fMSAAImage) {
47 return fMSAAImage->fResource; 47 return fMSAAImage->fResource;
48 } 48 }
49 return nullptr; 49 return nullptr;
50 } 50 }
51 GrVkImage* msaaImage() { return fMSAAImage; }
51 const GrVkImageView* resolveAttachmentView() const { return fResolveAttachme ntView; } 52 const GrVkImageView* resolveAttachmentView() const { return fResolveAttachme ntView; }
52 const GrVkResource* stencilImageResource() const; 53 const GrVkResource* stencilImageResource() const;
53 const GrVkImageView* stencilAttachmentView() const; 54 const GrVkImageView* stencilAttachmentView() const;
54 55
55 const GrVkRenderPass* simpleRenderPass() const { return fCachedSimpleRenderP ass; } 56 const GrVkRenderPass* simpleRenderPass() const { return fCachedSimpleRenderP ass; }
56 GrVkResourceProvider::CompatibleRPHandle compatibleRenderPassHandle() const { 57 GrVkResourceProvider::CompatibleRPHandle compatibleRenderPassHandle() const {
57 return fCompatibleRPHandle; 58 return fCompatibleRPHandle;
58 } 59 }
59 60
60 // override of GrRenderTarget 61 // override of GrRenderTarget
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 int fColorValuesPerPixel; 137 int fColorValuesPerPixel;
137 138
138 // This is a cached pointer to a simple render pass. The render target shoul d unref it 139 // This is a cached pointer to a simple render pass. The render target shoul d unref it
139 // once it is done with it. 140 // once it is done with it.
140 const GrVkRenderPass* fCachedSimpleRenderPass; 141 const GrVkRenderPass* fCachedSimpleRenderPass;
141 // This is a handle to be used to quickly get compatible GrVkRenderPasses fo r this render target 142 // This is a handle to be used to quickly get compatible GrVkRenderPasses fo r this render target
142 GrVkResourceProvider::CompatibleRPHandle fCompatibleRPHandle; 143 GrVkResourceProvider::CompatibleRPHandle fCompatibleRPHandle;
143 }; 144 };
144 145
145 #endif 146 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpuCommandBuffer.cpp ('k') | tests/GpuLayerCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698