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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 void discard(GrRenderTarget*) override { | 70 void discard(GrRenderTarget*) override { |
71 SkDebugf("discard not yet implemented for Vulkan\n"); | 71 SkDebugf("discard not yet implemented for Vulkan\n"); |
72 } | 72 } |
73 | 73 |
74 bool onCopySurface(GrSurface* dst, | 74 bool onCopySurface(GrSurface* dst, |
75 GrSurface* src, | 75 GrSurface* src, |
76 const SkIRect& srcRect, | 76 const SkIRect& srcRect, |
77 const SkIPoint& dstPoint) override; | 77 const SkIPoint& dstPoint) override; |
78 | 78 |
| 79 void onGetMultisampleSpecs(GrRenderTarget* rt, |
| 80 const GrStencilSettings&, |
| 81 int* effectiveSampleCnt, |
| 82 SkAutoTDeleteArray<SkPoint>*); |
| 83 |
79 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { | 84 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { |
80 SkDebugf("initCopySurfaceDstDesc not yet implemented for Vulkan\n"); | 85 SkDebugf("initCopySurfaceDstDesc not yet implemented for Vulkan\n"); |
81 return false; | 86 return false; |
82 } | 87 } |
83 | 88 |
84 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 89 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
85 | 90 |
86 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 91 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
87 GrPixelConfig config) overri
de; | 92 GrPixelConfig config) overri
de; |
88 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; | 93 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 shaderc_compiler_t fCompiler; | 221 shaderc_compiler_t fCompiler; |
217 | 222 |
218 // This is only for our current testing and building. The client should be h
olding on to the | 223 // This is only for our current testing and building. The client should be h
olding on to the |
219 // VkInstance. | 224 // VkInstance. |
220 VkInstance fVkInstance; | 225 VkInstance fVkInstance; |
221 | 226 |
222 typedef GrGpu INHERITED; | 227 typedef GrGpu INHERITED; |
223 }; | 228 }; |
224 | 229 |
225 #endif | 230 #endif |
OLD | NEW |