| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, | 129 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, |
| 130 const SkTArray<GrMipLevel>&) override {
return NULL; } | 130 const SkTArray<GrMipLevel>&) override {
return NULL; } |
| 131 | 131 |
| 132 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; | 132 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; |
| 133 | 133 |
| 134 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 134 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
| 135 GrWrapOwnership) override; | 135 GrWrapOwnership) override; |
| 136 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&, | 136 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&, |
| 137 GrWrapOwnership) override
{ return NULL; } | 137 GrWrapOwnership) override
{ return NULL; } |
| 138 | 138 |
| 139 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; | 139 GrBuffer* onCreateBuffer(GrBufferType, size_t size, GrAccessPattern) overrid
e; |
| 140 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; | |
| 141 GrTransferBuffer* onCreateTransferBuffer(size_t size, TransferType type) ove
rride; | |
| 142 | 140 |
| 143 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; | 141 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
| 144 | 142 |
| 145 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 143 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
| 146 | 144 |
| 147 void onDraw(const GrPipeline&, | 145 void onDraw(const GrPipeline&, |
| 148 const GrPrimitiveProcessor&, | 146 const GrPrimitiveProcessor&, |
| 149 const GrMesh*, | 147 const GrMesh*, |
| 150 int meshCount) override; | 148 int meshCount) override; |
| 151 | 149 |
| 152 bool onReadPixels(GrSurface* surface, | 150 bool onReadPixels(GrSurface* surface, |
| 153 int left, int top, int width, int height, | 151 int left, int top, int width, int height, |
| 154 GrPixelConfig, | 152 GrPixelConfig, |
| 155 void* buffer, | 153 void* buffer, |
| 156 size_t rowBytes) override; | 154 size_t rowBytes) override; |
| 157 | 155 |
| 158 bool onWritePixels(GrSurface* surface, | 156 bool onWritePixels(GrSurface* surface, |
| 159 int left, int top, int width, int height, | 157 int left, int top, int width, int height, |
| 160 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; | 158 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; |
| 161 | 159 |
| 162 bool onTransferPixels(GrSurface*, | 160 bool onTransferPixels(GrSurface*, |
| 163 int left, int top, int width, int height, | 161 int left, int top, int width, int height, |
| 164 GrPixelConfig config, GrTransferBuffer* buffer, | 162 GrPixelConfig config, GrBuffer* transferBuffer, |
| 165 size_t offset, size_t rowBytes) override { return fals
e; } | 163 size_t offset, size_t rowBytes) override { return fals
e; } |
| 166 | 164 |
| 167 void onResolveRenderTarget(GrRenderTarget* target) override {} | 165 void onResolveRenderTarget(GrRenderTarget* target) override {} |
| 168 | 166 |
| 169 bool prepareDrawState(const GrPipeline&, | 167 bool prepareDrawState(const GrPipeline&, |
| 170 const GrPrimitiveProcessor&, | 168 const GrPrimitiveProcessor&, |
| 171 GrPrimitiveType, | 169 GrPrimitiveType, |
| 172 const GrVkRenderPass&, | 170 const GrVkRenderPass&, |
| 173 GrVkPipelineState** pipelineState); | 171 GrVkPipelineState** pipelineState); |
| 174 | 172 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 217 |
| 220 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 218 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 221 // since there is significant overhead to the first compile of any compiler. | 219 // since there is significant overhead to the first compile of any compiler. |
| 222 shaderc_compiler_t fCompiler; | 220 shaderc_compiler_t fCompiler; |
| 223 | 221 |
| 224 | 222 |
| 225 typedef GrGpu INHERITED; | 223 typedef GrGpu INHERITED; |
| 226 }; | 224 }; |
| 227 | 225 |
| 228 #endif | 226 #endif |
| OLD | NEW |