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 #ifndef GrVkGpu_DEFINED | 8 #ifndef GrVkGpu_DEFINED |
9 #define GrVkGpu_DEFINED | 9 #define GrVkGpu_DEFINED |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 bool prepareDrawState(const GrPipeline&, |
164 const GrPrimitiveProcessor&, | 164 const GrPrimitiveProcessor&, |
165 GrPrimitiveType, | 165 GrPrimitiveType, |
166 const GrVkRenderPass&, | 166 const GrVkRenderPass&, |
167 GrVkPipelineState** pipelineState); | 167 sk_sp<GrVkPipelineState>* pipelineState); |
bsalomon
2016/03/28 14:51:58
why not just return a sk_sp<GrVkPipelineState>?
egdaniel
2016/03/28 18:14:46
Done.
| |
168 | 168 |
169 // Bind vertex and index buffers | 169 // Bind vertex and index buffers |
170 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); | 170 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); |
171 | 171 |
172 // Ends and submits the current command buffer to the queue and then creates a new command | 172 // 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 | 173 // 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. | 174 // work in the queue to finish before returning. |
175 void submitCommandBuffer(SyncQueue sync); | 175 void submitCommandBuffer(SyncQueue sync); |
176 | 176 |
177 void copySurfaceAsCopyImage(GrSurface* dst, | 177 void copySurfaceAsCopyImage(GrSurface* dst, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 | 213 |
214 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once | 214 // 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. | 215 // since there is significant overhead to the first compile of any compiler. |
216 shaderc_compiler_t fCompiler; | 216 shaderc_compiler_t fCompiler; |
217 | 217 |
218 | 218 |
219 typedef GrGpu INHERITED; | 219 typedef GrGpu INHERITED; |
220 }; | 220 }; |
221 | 221 |
222 #endif | 222 #endif |
OLD | NEW |