| 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) 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 int width, int height, | 206 int width, int height, |
| 203 GrPixelConfig, | 207 GrPixelConfig, |
| 204 void* buffer, | 208 void* buffer, |
| 205 size_t rowBytes) override; | 209 size_t rowBytes) override; |
| 206 | 210 |
| 207 bool onWritePixels(GrSurface*, | 211 bool onWritePixels(GrSurface*, |
| 208 int left, int top, int width, int height, | 212 int left, int top, int width, int height, |
| 209 GrPixelConfig config, | 213 GrPixelConfig config, |
| 210 const SkTArray<GrMipLevel>& texels) override; | 214 const SkTArray<GrMipLevel>& texels) override; |
| 211 | 215 |
| 212 bool onTransferPixels(GrSurface*, | 216 bool onTransferPixels(GrTexture*, |
| 213 int left, int top, int width, int height, | 217 int left, int top, int width, int height, |
| 214 GrPixelConfig config, GrBuffer* transferBuffer, | 218 GrPixelConfig config, GrBuffer* transferBuffer, |
| 215 size_t offset, size_t rowBytes) override; | 219 size_t offset, size_t rowBytes) override; |
| 216 | 220 |
| 217 void onResolveRenderTarget(GrRenderTarget* target) override; | 221 void onResolveRenderTarget(GrRenderTarget* target) override; |
| 218 | 222 |
| 219 bool onCopySurface(GrSurface* dst, | 223 bool onCopySurface(GrSurface* dst, |
| 220 GrSurface* src, | 224 GrSurface* src, |
| 221 const SkIRect& srcRect, | 225 const SkIRect& srcRect, |
| 222 const SkIPoint& dstPoint) override; | 226 const SkIPoint& dstPoint) override; |
| (...skipping 415 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 |