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

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

Issue 1836863002: Change VkPipelineStateCahce to use Hash and LRU LList. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update macro name Created 4 years, 8 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 | « no previous file | 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 int left, int top, int width, int height, 153 int left, int top, int width, int height,
154 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri de; 154 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri de;
155 155
156 bool onTransferPixels(GrSurface*, 156 bool onTransferPixels(GrSurface*,
157 int left, int top, int width, int height, 157 int left, int top, int width, int height,
158 GrPixelConfig config, GrBuffer* transferBuffer, 158 GrPixelConfig config, GrBuffer* transferBuffer,
159 size_t offset, size_t rowBytes) override { return fals e; } 159 size_t offset, size_t rowBytes) override { return fals e; }
160 160
161 void onResolveRenderTarget(GrRenderTarget* target) override {} 161 void onResolveRenderTarget(GrRenderTarget* target) override {}
162 162
163 bool prepareDrawState(const GrPipeline&, 163 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&,
164 const GrPrimitiveProcessor&, 164 const GrPrimitiveProcessor&,
165 GrPrimitiveType, 165 GrPrimitiveType,
166 const GrVkRenderPass&, 166 const GrVkRenderPass&);
167 GrVkPipelineState** pipelineState);
168 167
169 // Bind vertex and index buffers 168 // Bind vertex and index buffers
170 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); 169 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&);
171 170
172 // Ends and submits the current command buffer to the queue and then creates a new command 171 // Ends and submits the current command buffer to the queue and then creates a new command
173 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi ll wait for all 172 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi ll wait for all
174 // work in the queue to finish before returning. 173 // work in the queue to finish before returning.
175 void submitCommandBuffer(SyncQueue sync); 174 void submitCommandBuffer(SyncQueue sync);
176 175
177 void copySurfaceAsCopyImage(GrSurface* dst, 176 void copySurfaceAsCopyImage(GrSurface* dst,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 212
214 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 213 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
215 // since there is significant overhead to the first compile of any compiler. 214 // since there is significant overhead to the first compile of any compiler.
216 shaderc_compiler_t fCompiler; 215 shaderc_compiler_t fCompiler;
217 216
218 217
219 typedef GrGpu INHERITED; 218 typedef GrGpu INHERITED;
220 }; 219 };
221 220
222 #endif 221 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698