| OLD | NEW |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 const GrVkImageView* resolveAttachmentView() const { return fResolveAttachme
ntView; } | 51 const GrVkImageView* resolveAttachmentView() const { return fResolveAttachme
ntView; } |
| 52 const GrVkResource* stencilImageResource() const; | 52 const GrVkResource* stencilImageResource() const; |
| 53 const GrVkImageView* stencilAttachmentView() const; | 53 const GrVkImageView* stencilAttachmentView() const; |
| 54 | 54 |
| 55 const GrVkRenderPass* simpleRenderPass() const { return fCachedSimpleRenderP
ass; } | 55 const GrVkRenderPass* simpleRenderPass() const { return fCachedSimpleRenderP
ass; } |
| 56 GrVkResourceProvider::CompatibleRPHandle compatibleRenderPassHandle() const
{ |
| 57 return fCompatibleRPHandle; |
| 58 } |
| 56 | 59 |
| 57 // override of GrRenderTarget | 60 // override of GrRenderTarget |
| 58 ResolveType getResolveType() const override { | 61 ResolveType getResolveType() const override { |
| 59 return kCanResolve_ResolveType; | 62 return kCanResolve_ResolveType; |
| 60 } | 63 } |
| 61 | 64 |
| 62 bool canAttemptStencilAttachment() const override { | 65 bool canAttemptStencilAttachment() const override { |
| 63 return true; | 66 return true; |
| 64 } | 67 } |
| 65 | 68 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 int fColorValuesPerPixel; | 136 int fColorValuesPerPixel; |
| 134 | 137 |
| 135 // This is a cached pointer to a simple render pass. The render target shoul
d unref it | 138 // This is a cached pointer to a simple render pass. The render target shoul
d unref it |
| 136 // once it is done with it. | 139 // once it is done with it. |
| 137 const GrVkRenderPass* fCachedSimpleRenderPass; | 140 const GrVkRenderPass* fCachedSimpleRenderPass; |
| 138 // This is a handle to be used to quickly get compatible GrVkRenderPasses fo
r this render target | 141 // This is a handle to be used to quickly get compatible GrVkRenderPasses fo
r this render target |
| 139 GrVkResourceProvider::CompatibleRPHandle fCompatibleRPHandle; | 142 GrVkResourceProvider::CompatibleRPHandle fCompatibleRPHandle; |
| 140 }; | 143 }; |
| 141 | 144 |
| 142 #endif | 145 #endif |
| OLD | NEW |