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

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

Issue 1977403002: Refactor creation of GrVkRenderPasses to make them move general (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: review nits Created 4 years, 6 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/GrVkRenderPass.cpp ('k') | src/gpu/vk/GrVkRenderTarget.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
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
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
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkRenderPass.cpp ('k') | src/gpu/vk/GrVkRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698