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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 size_t rowBytes) SK_OVERRIDE; | 152 size_t rowBytes) SK_OVERRIDE; |
153 | 153 |
154 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE; | 154 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE; |
155 | 155 |
156 virtual void onDraw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&) SK
_OVERRIDE; | 156 virtual void onDraw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&) SK
_OVERRIDE; |
157 | 157 |
158 | 158 |
159 virtual void clearStencil(GrRenderTarget*) SK_OVERRIDE; | 159 virtual void clearStencil(GrRenderTarget*) SK_OVERRIDE; |
160 virtual bool flushGraphicsState(const GrOptDrawState&, | 160 virtual bool flushGraphicsState(const GrOptDrawState&, |
161 DrawType, | 161 DrawType, |
162 const GrClipMaskManager::ScissorState&, | |
163 const GrDeviceCoordTexture* dstCopy) SK_OVER
RIDE; | 162 const GrDeviceCoordTexture* dstCopy) SK_OVER
RIDE; |
164 | 163 |
165 // GrDrawTarget overrides | 164 // GrDrawTarget overrides |
166 virtual void didAddGpuTraceMarker() SK_OVERRIDE; | 165 virtual void didAddGpuTraceMarker() SK_OVERRIDE; |
167 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE; | 166 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE; |
168 | 167 |
169 // binds texture unit in GL | 168 // binds texture unit in GL |
170 void setTextureUnit(int unitIdx); | 169 void setTextureUnit(int unitIdx); |
171 | 170 |
172 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset | 171 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 452 |
454 // we record what stencil format worked last time to hopefully exit early | 453 // 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. | 454 // from our loop that tries stencil formats and calls check fb status. |
456 int fLastSuccessfulStencilFmtIdx; | 455 int fLastSuccessfulStencilFmtIdx; |
457 | 456 |
458 typedef GrGpu INHERITED; | 457 typedef GrGpu INHERITED; |
459 friend class GrGLPathRendering; // For accessing setTextureUnit. | 458 friend class GrGLPathRendering; // For accessing setTextureUnit. |
460 }; | 459 }; |
461 | 460 |
462 #endif | 461 #endif |
OLD | NEW |