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

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

Issue 2115993002: Add resource tracking output and command buffer recycling (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments 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/GrVkFramebuffer.h ('k') | src/gpu/vk/GrVkGpu.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 #ifndef GrVkGpu_DEFINED 8 #ifndef GrVkGpu_DEFINED
9 #define GrVkGpu_DEFINED 9 #define GrVkGpu_DEFINED
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 #if USE_SKSL 123 #if USE_SKSL
124 SkSL::Compiler* shaderCompiler() const { 124 SkSL::Compiler* shaderCompiler() const {
125 return fCompiler; 125 return fCompiler;
126 } 126 }
127 #else 127 #else
128 shaderc_compiler_t shadercCompiler() const { 128 shaderc_compiler_t shadercCompiler() const {
129 return fCompiler; 129 return fCompiler;
130 } 130 }
131 #endif 131 #endif
132 132
133 void submitSecondaryCommandBuffer(const GrVkSecondaryCommandBuffer*, 133 void submitSecondaryCommandBuffer(GrVkSecondaryCommandBuffer*,
134 const GrVkRenderPass*, 134 const GrVkRenderPass*,
135 const VkClearValue*, 135 const VkClearValue*,
136 GrVkRenderTarget*, 136 GrVkRenderTarget*,
137 const SkIRect& bounds); 137 const SkIRect& bounds);
138 138
139 void finishDrawTarget() override; 139 void finishDrawTarget() override;
140 140
141 void generateMipmap(GrVkTexture* tex) const; 141 void generateMipmap(GrVkTexture* tex) const;
142 142
143 bool updateBuffer(GrVkBuffer* buffer, const void* src, size_t srcSizeInBytes ); 143 bool updateBuffer(GrVkBuffer* buffer, const void* src, size_t srcSizeInBytes );
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 #else 262 #else
263 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 263 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
264 // since there is significant overhead to the first compile of any compiler. 264 // since there is significant overhead to the first compile of any compiler.
265 shaderc_compiler_t fCompiler; 265 shaderc_compiler_t fCompiler;
266 #endif 266 #endif
267 267
268 typedef GrGpu INHERITED; 268 typedef GrGpu INHERITED;
269 }; 269 };
270 270
271 #endif 271 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkFramebuffer.h ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698