| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |