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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, | 64 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, |
65 GrPixelConfig srcConfig, DrawPreference*, | 65 GrPixelConfig srcConfig, DrawPreference*, |
66 WritePixelTempDrawInfo*) override; | 66 WritePixelTempDrawInfo*) override; |
67 | 67 |
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, const GrStencilSettings&, |
74 const GrStencilSettings&, | 74 int* effectiveSampleCnt, SamplePattern*) override
; |
75 int* effectiveSampleCnt, | |
76 SkAutoTDeleteArray<SkPoint>*) override; | |
77 | 75 |
78 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override; | 76 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override; |
79 | 77 |
80 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 78 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
81 | 79 |
82 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 80 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
83 GrPixelConfig config, | 81 GrPixelConfig config, |
84 bool isRenderTarget) overrid
e; | 82 bool isRenderTarget) overrid
e; |
85 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; | 83 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; |
86 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture
) override; | 84 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture
) override; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 242 |
245 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 243 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
246 // since there is significant overhead to the first compile of any compiler. | 244 // since there is significant overhead to the first compile of any compiler. |
247 shaderc_compiler_t fCompiler; | 245 shaderc_compiler_t fCompiler; |
248 | 246 |
249 | 247 |
250 typedef GrGpu INHERITED; | 248 typedef GrGpu INHERITED; |
251 }; | 249 }; |
252 | 250 |
253 #endif | 251 #endif |
OLD | NEW |