| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 bool canCopySurface(const GrSurface* dst, | 103 bool canCopySurface(const GrSurface* dst, |
| 104 const GrSurface* src, | 104 const GrSurface* src, |
| 105 const SkIRect& srcRect, | 105 const SkIRect& srcRect, |
| 106 const SkIPoint& dstPoint) override; | 106 const SkIPoint& dstPoint) override; |
| 107 | 107 |
| 108 void buildProgramDesc(GrProgramDesc*, | 108 void buildProgramDesc(GrProgramDesc*, |
| 109 const GrPrimitiveProcessor&, | 109 const GrPrimitiveProcessor&, |
| 110 const GrPipeline&, | 110 const GrPipeline&, |
| 111 const GrBatchTracker&) const override; | 111 const GrBatchTracker&) const override; |
| 112 | 112 |
| 113 void blendBarrier() override; |
| 114 |
| 113 private: | 115 private: |
| 114 // GrGpu overrides | 116 // GrGpu overrides |
| 115 void onResetContext(uint32_t resetBits) override; | 117 void onResetContext(uint32_t resetBits) override; |
| 116 | 118 |
| 117 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v
oid* srcData, | 119 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v
oid* srcData, |
| 118 size_t rowBytes) override; | 120 size_t rowBytes) override; |
| 119 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete
d, | 121 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete
d, |
| 120 const void* srcData) override; | 122 const void* srcData) override; |
| 121 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; | 123 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; |
| 122 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; | 124 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 465 |
| 464 // we record what stencil format worked last time to hopefully exit early | 466 // we record what stencil format worked last time to hopefully exit early |
| 465 // from our loop that tries stencil formats and calls check fb status. | 467 // from our loop that tries stencil formats and calls check fb status. |
| 466 int fLastSuccessfulStencilFmtIdx; | 468 int fLastSuccessfulStencilFmtIdx; |
| 467 | 469 |
| 468 typedef GrGpu INHERITED; | 470 typedef GrGpu INHERITED; |
| 469 friend class GrGLPathRendering; // For accessing setTextureUnit. | 471 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 470 }; | 472 }; |
| 471 | 473 |
| 472 #endif | 474 #endif |
| OLD | NEW |