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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 bool onCopySurface(GrSurface* dst, | 68 bool onCopySurface(GrSurface* dst, |
69 GrSurface* src, | 69 GrSurface* src, |
70 const SkIRect& srcRect, | 70 const SkIRect& srcRect, |
71 const SkIPoint& dstPoint) override; | 71 const SkIPoint& dstPoint) override; |
72 | 72 |
73 void onGetMultisampleSpecs(GrRenderTarget* rt, | 73 void onGetMultisampleSpecs(GrRenderTarget* rt, |
74 const GrStencilSettings&, | 74 const GrStencilSettings&, |
75 int* effectiveSampleCnt, | 75 int* effectiveSampleCnt, |
76 SkAutoTDeleteArray<SkPoint>*); | 76 SkAutoTDeleteArray<SkPoint>*); |
77 | 77 |
78 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { | 78 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override; |
79 return false; | |
80 } | |
81 | 79 |
82 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 80 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
83 | 81 |
84 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 82 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
85 GrPixelConfig config) overri
de; | 83 GrPixelConfig config) overri
de; |
86 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; | 84 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; |
87 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture
) override; | 85 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture
) override; |
88 | 86 |
89 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget*, | 87 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget*, |
90 int width, | 88 int width, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 218 |
221 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 219 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
222 // since there is significant overhead to the first compile of any compiler. | 220 // since there is significant overhead to the first compile of any compiler. |
223 shaderc_compiler_t fCompiler; | 221 shaderc_compiler_t fCompiler; |
224 | 222 |
225 | 223 |
226 typedef GrGpu INHERITED; | 224 typedef GrGpu INHERITED; |
227 }; | 225 }; |
228 | 226 |
229 #endif | 227 #endif |
OLD | NEW |