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