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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 }; | 57 }; |
58 | 58 |
59 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh
t, size_t rowBytes, | 59 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh
t, size_t rowBytes, |
60 GrPixelConfig readConfig, DrawPreference*, | 60 GrPixelConfig readConfig, DrawPreference*, |
61 ReadPixelTempDrawInfo*) override; | 61 ReadPixelTempDrawInfo*) override; |
62 | 62 |
63 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, | 63 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, |
64 GrPixelConfig srcConfig, DrawPreference*, | 64 GrPixelConfig srcConfig, DrawPreference*, |
65 WritePixelTempDrawInfo*) override; | 65 WritePixelTempDrawInfo*) override; |
66 | 66 |
67 void buildProgramDesc(GrProgramDesc*, const GrPrimitiveProcessor&, | |
68 const GrPipeline&) const override; | |
69 | |
70 void discard(GrRenderTarget*) override { | 67 void discard(GrRenderTarget*) override { |
71 SkDebugf("discard not yet implemented for Vulkan\n"); | 68 SkDebugf("discard not yet implemented for Vulkan\n"); |
72 } | 69 } |
73 | 70 |
74 bool onCopySurface(GrSurface* dst, | 71 bool onCopySurface(GrSurface* dst, |
75 GrSurface* src, | 72 GrSurface* src, |
76 const SkIRect& srcRect, | 73 const SkIRect& srcRect, |
77 const SkIPoint& dstPoint) override; | 74 const SkIPoint& dstPoint) override; |
78 | 75 |
79 void onGetMultisampleSpecs(GrRenderTarget* rt, | 76 void onGetMultisampleSpecs(GrRenderTarget* rt, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 } | 144 } |
148 | 145 |
149 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; | 146 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; |
150 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; | 147 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; |
151 GrTransferBuffer* onCreateTransferBuffer(size_t size, TransferType type) ove
rride; | 148 GrTransferBuffer* onCreateTransferBuffer(size_t size, TransferType type) ove
rride; |
152 | 149 |
153 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; | 150 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
154 | 151 |
155 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 152 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
156 | 153 |
157 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; | 154 void onDraw(const GrPipeline&, |
| 155 const GrPrimitiveProcessor&, |
| 156 GrPrimitiveType primitiveType, |
| 157 const GrVertices*, |
| 158 int drawCount) override; |
158 | 159 |
159 bool onReadPixels(GrSurface* surface, | 160 bool onReadPixels(GrSurface* surface, |
160 int left, int top, int width, int height, | 161 int left, int top, int width, int height, |
161 GrPixelConfig, | 162 GrPixelConfig, |
162 void* buffer, | 163 void* buffer, |
163 size_t rowBytes) override; | 164 size_t rowBytes) override; |
164 | 165 |
165 bool onWritePixels(GrSurface* surface, | 166 bool onWritePixels(GrSurface* surface, |
166 int left, int top, int width, int height, | 167 int left, int top, int width, int height, |
167 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; | 168 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 shaderc_compiler_t fCompiler; | 218 shaderc_compiler_t fCompiler; |
218 | 219 |
219 // This is only for our current testing and building. The client should be h
olding on to the | 220 // This is only for our current testing and building. The client should be h
olding on to the |
220 // VkInstance. | 221 // VkInstance. |
221 VkInstance fVkInstance; | 222 VkInstance fVkInstance; |
222 | 223 |
223 typedef GrGpu INHERITED; | 224 typedef GrGpu INHERITED; |
224 }; | 225 }; |
225 | 226 |
226 #endif | 227 #endif |
OLD | NEW |