| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; | 140 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; |
| 141 | 141 |
| 142 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 142 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
| 143 GrWrapOwnership) override; | 143 GrWrapOwnership) override; |
| 144 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&, | 144 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&, |
| 145 GrWrapOwnership) override
{ | 145 GrWrapOwnership) override
{ |
| 146 SkDebugf("onWrapBackendTextureAsRenderTarget not yet implemented for Vul
kan\n"); | 146 SkDebugf("onWrapBackendTextureAsRenderTarget not yet implemented for Vul
kan\n"); |
| 147 return NULL; | 147 return NULL; |
| 148 } | 148 } |
| 149 | 149 |
| 150 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; | 150 GrBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; |
| 151 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; | 151 GrBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; |
| 152 GrTransferBuffer* onCreateTransferBuffer(size_t size, TransferType type) ove
rride; | 152 GrTransferBuffer* onCreateTransferBuffer(size_t size, TransferType type) ove
rride; |
| 153 | 153 |
| 154 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; | 154 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
| 155 | 155 |
| 156 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 156 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
| 157 | 157 |
| 158 void onDraw(const GrPipeline&, | 158 void onDraw(const GrPipeline&, |
| 159 const GrPrimitiveProcessor&, | 159 const GrPrimitiveProcessor&, |
| 160 const GrMesh*, | 160 const GrMesh*, |
| 161 int meshCount) override; | 161 int meshCount) override; |
| 162 | 162 |
| 163 bool onReadPixels(GrSurface* surface, | 163 bool onReadPixels(GrSurface* surface, |
| 164 int left, int top, int width, int height, | 164 int left, int top, int width, int height, |
| 165 GrPixelConfig, | 165 GrPixelConfig, |
| 166 void* buffer, | 166 void* buffer, |
| 167 size_t rowBytes) override; | 167 size_t rowBytes) override; |
| 168 | 168 |
| 169 bool onWritePixels(GrSurface* surface, | 169 bool onWritePixels(GrSurface* surface, |
| 170 int left, int top, int width, int height, | 170 int left, int top, int width, int height, |
| 171 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; | 171 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; |
| 172 | 172 |
| 173 bool onTransferPixels(GrSurface*, | 173 bool onTransferPixels(GrSurface*, |
| 174 int left, int top, int width, int height, | 174 int left, int top, int width, int height, |
| 175 GrPixelConfig config, GrTransferBuffer* buffer, | 175 GrPixelConfig config, GrBuffer* transferBuffer, |
| 176 size_t offset, size_t rowBytes) override { | 176 size_t offset, size_t rowBytes) override { |
| 177 SkDebugf("onTransferPixels not yet implemented for Vulkan\n"); | 177 SkDebugf("onTransferPixels not yet implemented for Vulkan\n"); |
| 178 return false; | 178 return false; |
| 179 } | 179 } |
| 180 | 180 |
| 181 void onResolveRenderTarget(GrRenderTarget* target) override { | 181 void onResolveRenderTarget(GrRenderTarget* target) override { |
| 182 SkDebugf("onResolveRenderTarget not yet implemented for Vulkan\n"); | 182 SkDebugf("onResolveRenderTarget not yet implemented for Vulkan\n"); |
| 183 } | 183 } |
| 184 | 184 |
| 185 bool prepareDrawState(const GrPipeline&, | 185 bool prepareDrawState(const GrPipeline&, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 shaderc_compiler_t fCompiler; | 232 shaderc_compiler_t fCompiler; |
| 233 | 233 |
| 234 // This is only for our current testing and building. The client should be h
olding on to the | 234 // This is only for our current testing and building. The client should be h
olding on to the |
| 235 // VkInstance. | 235 // VkInstance. |
| 236 VkInstance fVkInstance; | 236 VkInstance fVkInstance; |
| 237 | 237 |
| 238 typedef GrGpu INHERITED; | 238 typedef GrGpu INHERITED; |
| 239 }; | 239 }; |
| 240 | 240 |
| 241 #endif | 241 #endif |
| OLD | NEW |