| 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 GrGpuGL_DEFINED | 8 #ifndef GrGpuGL_DEFINED |
| 9 #define GrGpuGL_DEFINED | 9 #define GrGpuGL_DEFINED |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void notifyVertexArrayDelete(GrGLuint id) { | 88 void notifyVertexArrayDelete(GrGLuint id) { |
| 89 fHWGeometryState.notifyVertexArrayDelete(id); | 89 fHWGeometryState.notifyVertexArrayDelete(id); |
| 90 } | 90 } |
| 91 void notifyVertexBufferDelete(GrGLuint id) { | 91 void notifyVertexBufferDelete(GrGLuint id) { |
| 92 fHWGeometryState.notifyVertexBufferDelete(id); | 92 fHWGeometryState.notifyVertexBufferDelete(id); |
| 93 } | 93 } |
| 94 void notifyIndexBufferDelete(GrGLuint id) { | 94 void notifyIndexBufferDelete(GrGLuint id) { |
| 95 fHWGeometryState.notifyIndexBufferDelete(id); | 95 fHWGeometryState.notifyIndexBufferDelete(id); |
| 96 } | 96 } |
| 97 | 97 |
| 98 // DrawTarget overrides |
| 99 virtual bool copySurface(GrSurface* dst, |
| 100 GrSurface* src, |
| 101 const SkIRect& srcRect, |
| 102 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 103 |
| 104 virtual bool canCopySurface(GrSurface* dst, |
| 105 GrSurface* src, |
| 106 const SkIRect& srcRect, |
| 107 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 108 |
| 98 protected: | 109 protected: |
| 99 virtual bool onCopySurface(GrSurface* dst, | |
| 100 GrSurface* src, | |
| 101 const SkIRect& srcRect, | |
| 102 const SkIPoint& dstPoint) SK_OVERRIDE; | |
| 103 | |
| 104 virtual bool onCanCopySurface(GrSurface* dst, | |
| 105 GrSurface* src, | |
| 106 const SkIRect& srcRect, | |
| 107 const SkIPoint& dstPoint) SK_OVERRIDE; | |
| 108 | |
| 109 virtual void buildProgramDesc(const GrOptDrawState&, | 110 virtual void buildProgramDesc(const GrOptDrawState&, |
| 110 const GrProgramDesc::DescInfo&, | 111 const GrProgramDesc::DescInfo&, |
| 111 GrGpu::DrawType, | 112 GrGpu::DrawType, |
| 112 const GrDeviceCoordTexture* dstCopy, | 113 const GrDeviceCoordTexture* dstCopy, |
| 113 GrProgramDesc*) SK_OVERRIDE; | 114 GrProgramDesc*) SK_OVERRIDE; |
| 114 | 115 |
| 115 private: | 116 private: |
| 116 // GrGpu overrides | 117 // GrGpu overrides |
| 117 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE; | 118 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE; |
| 118 | 119 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 | 451 |
| 451 // we record what stencil format worked last time to hopefully exit early | 452 // we record what stencil format worked last time to hopefully exit early |
| 452 // from our loop that tries stencil formats and calls check fb status. | 453 // from our loop that tries stencil formats and calls check fb status. |
| 453 int fLastSuccessfulStencilFmtIdx; | 454 int fLastSuccessfulStencilFmtIdx; |
| 454 | 455 |
| 455 typedef GrGpu INHERITED; | 456 typedef GrGpu INHERITED; |
| 456 friend class GrGLPathRendering; // For accessing setTextureUnit. | 457 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 457 }; | 458 }; |
| 458 | 459 |
| 459 #endif | 460 #endif |
| OLD | NEW |