| 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 |
| 11 | 11 |
| 12 #include "GrVkImage.h" | 12 #include "GrVkImage.h" |
| 13 #include "GrRenderTarget.h" | 13 #include "GrRenderTarget.h" |
| 14 | 14 |
| 15 #include "GrVkRenderPass.h" | 15 #include "GrVkRenderPass.h" |
| 16 #include "GrVkResourceProvider.h" |
| 16 | 17 |
| 17 class GrVkCommandBuffer; | 18 class GrVkCommandBuffer; |
| 18 class GrVkFramebuffer; | 19 class GrVkFramebuffer; |
| 19 class GrVkGpu; | 20 class GrVkGpu; |
| 20 class GrVkImageView; | 21 class GrVkImageView; |
| 21 class GrVkStencilAttachment; | 22 class GrVkStencilAttachment; |
| 22 | 23 |
| 23 struct GrVkImageInfo; | 24 struct GrVkImageInfo; |
| 24 | 25 |
| 25 #ifdef SK_BUILD_FOR_WIN | 26 #ifdef SK_BUILD_FOR_WIN |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 129 |
| 129 const GrVkFramebuffer* fFramebuffer; | 130 const GrVkFramebuffer* fFramebuffer; |
| 130 const GrVkImageView* fColorAttachmentView; | 131 const GrVkImageView* fColorAttachmentView; |
| 131 GrVkImage* fMSAAImage; | 132 GrVkImage* fMSAAImage; |
| 132 const GrVkImageView* fResolveAttachmentView; | 133 const GrVkImageView* fResolveAttachmentView; |
| 133 int fColorValuesPerPixel; | 134 int fColorValuesPerPixel; |
| 134 | 135 |
| 135 // This is a cached pointer to a simple render pass. The render target shoul
d unref it | 136 // This is a cached pointer to a simple render pass. The render target shoul
d unref it |
| 136 // once it is done with it. | 137 // once it is done with it. |
| 137 const GrVkRenderPass* fCachedSimpleRenderPass; | 138 const GrVkRenderPass* fCachedSimpleRenderPass; |
| 139 // This is a handle to be used to quickly get compatible GrVkRenderPasses fo
r this render target |
| 140 GrVkResourceProvider::CompatibleRPHandle fCompatibleRPHandle; |
| 138 }; | 141 }; |
| 139 | 142 |
| 140 #endif | 143 #endif |
| OLD | NEW |