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

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

Issue 2182783004: Add test configs for instanced rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add test configs for instanced rendering Created 4 years, 4 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/instanced/InstancedRendering.cpp ('k') | tests/TestConfigParsing.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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override; 176 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override;
177 177
178 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 178 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
179 GrWrapOwnership) override; 179 GrWrapOwnership) override;
180 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override { return NULL; } 180 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override { return NULL; }
181 181
182 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern, 182 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern,
183 const void* data) override; 183 const void* data) override;
184 184
185 gr_instanced::InstancedRendering* onCreateInstancedRendering() override { re turn nullptr; }
186
185 bool onReadPixels(GrSurface* surface, 187 bool onReadPixels(GrSurface* surface,
186 int left, int top, int width, int height, 188 int left, int top, int width, int height,
187 GrPixelConfig, 189 GrPixelConfig,
188 void* buffer, 190 void* buffer,
189 size_t rowBytes) override; 191 size_t rowBytes) override;
190 192
191 bool onWritePixels(GrSurface* surface, 193 bool onWritePixels(GrSurface* surface,
192 int left, int top, int width, int height, 194 int left, int top, int width, int height,
193 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri de; 195 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri de;
194 196
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 #else 262 #else
261 // 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
262 // 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.
263 shaderc_compiler_t fCompiler; 265 shaderc_compiler_t fCompiler;
264 #endif 266 #endif
265 267
266 typedef GrGpu INHERITED; 268 typedef GrGpu INHERITED;
267 }; 269 };
268 270
269 #endif 271 #endif
OLDNEW
« no previous file with comments | « src/gpu/instanced/InstancedRendering.cpp ('k') | tests/TestConfigParsing.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698