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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, | 76 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, |
77 GrPixelConfig srcConfig, DrawPreference*, | 77 GrPixelConfig srcConfig, DrawPreference*, |
78 WritePixelTempDrawInfo*) override; | 78 WritePixelTempDrawInfo*) override; |
79 | 79 |
80 bool onCopySurface(GrSurface* dst, | 80 bool onCopySurface(GrSurface* dst, |
81 GrSurface* src, | 81 GrSurface* src, |
82 const SkIRect& srcRect, | 82 const SkIRect& srcRect, |
83 const SkIPoint& dstPoint) override; | 83 const SkIPoint& dstPoint) override; |
84 | 84 |
85 void onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&, | 85 void onQueryMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&, |
86 int* effectiveSampleCnt, SamplePattern*) override
; | 86 int* effectiveSampleCnt, SamplePattern*) overri
de; |
87 | 87 |
88 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons
t override; | 88 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons
t override; |
89 | 89 |
90 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 90 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
91 | 91 |
92 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 92 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
93 GrPixelConfig config, | 93 GrPixelConfig config, |
94 bool isRenderTarget) overrid
e; | 94 bool isRenderTarget) overrid
e; |
95 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; | 95 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; |
96 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture
) override; | 96 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture
) override; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 #else | 283 #else |
284 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 284 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
285 // since there is significant overhead to the first compile of any compiler. | 285 // since there is significant overhead to the first compile of any compiler. |
286 shaderc_compiler_t fCompiler; | 286 shaderc_compiler_t fCompiler; |
287 #endif | 287 #endif |
288 | 288 |
289 typedef GrGpu INHERITED; | 289 typedef GrGpu INHERITED; |
290 }; | 290 }; |
291 | 291 |
292 #endif | 292 #endif |
OLD | NEW |