| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, | 123 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, |
| 124 const SkTArray<GrMipLevel>&) override {
return NULL; } | 124 const SkTArray<GrMipLevel>&) override {
return NULL; } |
| 125 | 125 |
| 126 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; | 126 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; |
| 127 | 127 |
| 128 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 128 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
| 129 GrWrapOwnership) override; | 129 GrWrapOwnership) override; |
| 130 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { return NULL; } | 130 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { return NULL; } |
| 131 | 131 |
| 132 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern) ov
erride; | 132 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern, |
| 133 const void* data) override; |
| 133 | 134 |
| 134 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; | 135 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
| 135 | 136 |
| 136 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 137 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
| 137 | 138 |
| 138 void onDraw(const GrPipeline&, | 139 void onDraw(const GrPipeline&, |
| 139 const GrPrimitiveProcessor&, | 140 const GrPrimitiveProcessor&, |
| 140 const GrMesh*, | 141 const GrMesh*, |
| 141 int meshCount) override; | 142 int meshCount) override; |
| 142 | 143 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 219 |
| 219 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 220 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 220 // since there is significant overhead to the first compile of any compiler. | 221 // since there is significant overhead to the first compile of any compiler. |
| 221 shaderc_compiler_t fCompiler; | 222 shaderc_compiler_t fCompiler; |
| 222 | 223 |
| 223 | 224 |
| 224 typedef GrGpu INHERITED; | 225 typedef GrGpu INHERITED; |
| 225 }; | 226 }; |
| 226 | 227 |
| 227 #endif | 228 #endif |
| OLD | NEW |