| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 const SkIRect& srcRect, | 107 const SkIRect& srcRect, |
| 108 const SkIPoint& dstPoint) override; | 108 const SkIPoint& dstPoint) override; |
| 109 | 109 |
| 110 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; | 110 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; |
| 111 | 111 |
| 112 void buildProgramDesc(GrProgramDesc*, | 112 void buildProgramDesc(GrProgramDesc*, |
| 113 const GrPrimitiveProcessor&, | 113 const GrPrimitiveProcessor&, |
| 114 const GrPipeline&, | 114 const GrPipeline&, |
| 115 const GrBatchTracker&) const override; | 115 const GrBatchTracker&) const override; |
| 116 | 116 |
| 117 virtual const GrGLInterface* glInterfaceForTesting() const { |
| 118 return this->glInterface(); |
| 119 } |
| 120 |
| 117 private: | 121 private: |
| 118 GrGLGpu(GrGLContext* ctx, GrContext* context); | 122 GrGLGpu(GrGLContext* ctx, GrContext* context); |
| 119 | 123 |
| 120 // GrGpu overrides | 124 // GrGpu overrides |
| 121 void onResetContext(uint32_t resetBits) override; | 125 void onResetContext(uint32_t resetBits) override; |
| 122 | 126 |
| 123 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 127 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
| 124 const void* srcData, size_t rowBytes) override; | 128 const void* srcData, size_t rowBytes) override; |
| 125 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, | 129 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, |
| 126 GrGpuResource::LifeCycle lifeCycle, | 130 GrGpuResource::LifeCycle lifeCycle, |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 | 477 |
| 474 // we record what stencil format worked last time to hopefully exit early | 478 // we record what stencil format worked last time to hopefully exit early |
| 475 // from our loop that tries stencil formats and calls check fb status. | 479 // from our loop that tries stencil formats and calls check fb status. |
| 476 int fLastSuccessfulStencilFmtIdx; | 480 int fLastSuccessfulStencilFmtIdx; |
| 477 | 481 |
| 478 typedef GrGpu INHERITED; | 482 typedef GrGpu INHERITED; |
| 479 friend class GrGLPathRendering; // For accessing setTextureUnit. | 483 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 480 }; | 484 }; |
| 481 | 485 |
| 482 #endif | 486 #endif |
| OLD | NEW |