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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 } | 116 } |
117 | 117 |
118 void finishDrawTarget() override; | 118 void finishDrawTarget() override; |
119 | 119 |
120 private: | 120 private: |
121 void onResetContext(uint32_t resetBits) override { | 121 void onResetContext(uint32_t resetBits) override { |
122 SkDebugf("onResetContext not yet implemented for Vulkan\n"); | 122 SkDebugf("onResetContext not yet implemented for Vulkan\n"); |
123 } | 123 } |
124 | 124 |
125 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le, | 125 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le, |
126 const void* srcData, size_t rowBytes) override; | 126 const SkTArray<GrMipLevel>&) override; |
127 | 127 |
128 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, | 128 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, |
129 const void* srcData) override { | 129 const SkTArray<GrMipLevel>&) override { |
130 SkDebugf("onCreateCompressedTexture not yet implemented for Vulkan\n"); | 130 SkDebugf("onCreateCompressedTexture not yet implemented for Vulkan\n"); |
131 return NULL; | 131 return NULL; |
132 } | 132 } |
133 | 133 |
134 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; | 134 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; |
135 | 135 |
136 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 136 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
137 GrWrapOwnership) override; | 137 GrWrapOwnership) override; |
138 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&, | 138 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&, |
139 GrWrapOwnership) override
{ | 139 GrWrapOwnership) override
{ |
(...skipping 12 matching lines...) Expand all Loading... |
152 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; | 152 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; |
153 | 153 |
154 bool onReadPixels(GrSurface* surface, | 154 bool onReadPixels(GrSurface* surface, |
155 int left, int top, int width, int height, | 155 int left, int top, int width, int height, |
156 GrPixelConfig, | 156 GrPixelConfig, |
157 void* buffer, | 157 void* buffer, |
158 size_t rowBytes) override; | 158 size_t rowBytes) override; |
159 | 159 |
160 bool onWritePixels(GrSurface* surface, | 160 bool onWritePixels(GrSurface* surface, |
161 int left, int top, int width, int height, | 161 int left, int top, int width, int height, |
162 GrPixelConfig config, const void* buffer, size_t rowBytes
) override; | 162 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; |
163 | 163 |
164 bool onTransferPixels(GrSurface*, | 164 bool onTransferPixels(GrSurface*, |
165 int left, int top, int width, int height, | 165 int left, int top, int width, int height, |
166 GrPixelConfig config, GrTransferBuffer* buffer, | 166 GrPixelConfig config, GrTransferBuffer* buffer, |
167 size_t offset, size_t rowBytes) override { | 167 size_t offset, size_t rowBytes) override { |
168 SkDebugf("onTransferPixels not yet implemented for Vulkan\n"); | 168 SkDebugf("onTransferPixels not yet implemented for Vulkan\n"); |
169 return false; | 169 return false; |
170 } | 170 } |
171 | 171 |
172 void onResolveRenderTarget(GrRenderTarget* target) override { | 172 void onResolveRenderTarget(GrRenderTarget* target) override { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 shaderc_compiler_t fCompiler; | 212 shaderc_compiler_t fCompiler; |
213 | 213 |
214 // This is only for our current testing and building. The client should be h
olding on to the | 214 // This is only for our current testing and building. The client should be h
olding on to the |
215 // VkInstance. | 215 // VkInstance. |
216 VkInstance fVkInstance; | 216 VkInstance fVkInstance; |
217 | 217 |
218 typedef GrGpu INHERITED; | 218 typedef GrGpu INHERITED; |
219 }; | 219 }; |
220 | 220 |
221 #endif | 221 #endif |
OLD | NEW |