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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void notifyIndexBufferDelete(GrGLuint id) { | 93 void notifyIndexBufferDelete(GrGLuint id) { |
94 fHWGeometryState.notifyIndexBufferDelete(id); | 94 fHWGeometryState.notifyIndexBufferDelete(id); |
95 } | 95 } |
96 | 96 |
97 // DrawTarget overrides | 97 // DrawTarget overrides |
98 virtual bool copySurface(GrSurface* dst, | 98 virtual bool copySurface(GrSurface* dst, |
99 GrSurface* src, | 99 GrSurface* src, |
100 const SkIRect& srcRect, | 100 const SkIRect& srcRect, |
101 const SkIPoint& dstPoint) SK_OVERRIDE; | 101 const SkIPoint& dstPoint) SK_OVERRIDE; |
102 | 102 |
103 virtual bool canCopySurface(GrSurface* dst, | 103 virtual bool canCopySurface(const GrSurface* dst, |
104 GrSurface* src, | 104 const GrSurface* src, |
105 const SkIRect& srcRect, | 105 const SkIRect& srcRect, |
106 const SkIPoint& dstPoint) SK_OVERRIDE; | 106 const SkIPoint& dstPoint) SK_OVERRIDE; |
107 | 107 |
108 protected: | 108 protected: |
109 virtual void buildProgramDesc(const GrOptDrawState&, | 109 virtual void buildProgramDesc(const GrOptDrawState&, |
110 const GrProgramDesc::DescInfo&, | 110 const GrProgramDesc::DescInfo&, |
111 GrGpu::DrawType, | 111 GrGpu::DrawType, |
112 const GrDeviceCoordTexture* dstCopy, | 112 const GrDeviceCoordTexture* dstCopy, |
113 GrProgramDesc*) SK_OVERRIDE; | 113 GrProgramDesc*) SK_OVERRIDE; |
114 | 114 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 453 |
454 // we record what stencil format worked last time to hopefully exit early | 454 // we record what stencil format worked last time to hopefully exit early |
455 // from our loop that tries stencil formats and calls check fb status. | 455 // from our loop that tries stencil formats and calls check fb status. |
456 int fLastSuccessfulStencilFmtIdx; | 456 int fLastSuccessfulStencilFmtIdx; |
457 | 457 |
458 typedef GrGpu INHERITED; | 458 typedef GrGpu INHERITED; |
459 friend class GrGLPathRendering; // For accessing setTextureUnit. | 459 friend class GrGLPathRendering; // For accessing setTextureUnit. |
460 }; | 460 }; |
461 | 461 |
462 #endif | 462 #endif |
OLD | NEW |