OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrGLGpu_DEFINED | 8 #ifndef GrGLGpu_DEFINED |
9 #define GrGLGpu_DEFINED | 9 #define GrGLGpu_DEFINED |
10 | 10 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 bool isRenderTarget = false)
override; | 137 bool isRenderTarget = false)
override; |
138 bool isTestingOnlyBackendTexture(GrBackendObject) const override; | 138 bool isTestingOnlyBackendTexture(GrBackendObject) const override; |
139 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) o
verride; | 139 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) o
verride; |
140 | 140 |
141 void resetShaderCacheForTesting() const override; | 141 void resetShaderCacheForTesting() const override; |
142 | 142 |
143 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override; | 143 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override; |
144 | 144 |
145 void finishDrawTarget() override; | 145 void finishDrawTarget() override; |
146 | 146 |
| 147 GrFence SK_WARN_UNUSED_RESULT insertFence() const override; |
| 148 bool waitFence(GrFence, uint64_t timeout) const override; |
| 149 void deleteFence(GrFence) const override; |
| 150 |
147 private: | 151 private: |
148 GrGLGpu(GrGLContext* ctx, GrContext* context); | 152 GrGLGpu(GrGLContext* ctx, GrContext* context); |
149 | 153 |
150 // GrGpu overrides | 154 // GrGpu overrides |
151 void onResetContext(uint32_t resetBits) override; | 155 void onResetContext(uint32_t resetBits) override; |
152 | 156 |
153 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; | 157 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; |
154 | 158 |
155 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, | 159 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, |
156 const SkTArray<GrMipLevel>& texels) override; | 160 const SkTArray<GrMipLevel>& texels) override; |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 bool fPLSHasBeenUsed; | 642 bool fPLSHasBeenUsed; |
639 | 643 |
640 float fHWMinSampleShading; | 644 float fHWMinSampleShading; |
641 | 645 |
642 typedef GrGpu INHERITED; | 646 typedef GrGpu INHERITED; |
643 friend class GrGLPathRendering; // For accessing setTextureUnit. | 647 friend class GrGLPathRendering; // For accessing setTextureUnit. |
644 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta
te. | 648 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta
te. |
645 }; | 649 }; |
646 | 650 |
647 #endif | 651 #endif |
OLD | NEW |