| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 bool insideClip) SK_OVERRIDE; | 172 bool insideClip) SK_OVERRIDE; |
| 173 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop
y) SK_OVERRIDE; | 173 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop
y) SK_OVERRIDE; |
| 174 | 174 |
| 175 // GrDrawTarget ovverides | 175 // GrDrawTarget ovverides |
| 176 virtual void didAddGpuTraceMarker() SK_OVERRIDE; | 176 virtual void didAddGpuTraceMarker() SK_OVERRIDE; |
| 177 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE; | 177 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE; |
| 178 | 178 |
| 179 // binds texture unit in GL | 179 // binds texture unit in GL |
| 180 void setTextureUnit(int unitIdx); | 180 void setTextureUnit(int unitIdx); |
| 181 | 181 |
| 182 // Stencil and cover GL paths, using the v1.3 API if available |
| 183 void stencilThenCoverFillPath(GrGLuint path, GrGLenum fillMode, |
| 184 GrGLuint mask, GrGLenum coverMode); |
| 185 void stencilThenCoverStrokePath(GrGLuint path, GrGLint reference, |
| 186 GrGLuint mask, GrGLenum coverMode); |
| 187 void stencilThenCoverFillPathInstanced(GrGLsizei numPaths, GrGLenum pathName
Type, |
| 188 const GrGLvoid *paths, GrGLuint pathB
ase, |
| 189 GrGLenum fillMode, GrGLuint mask, |
| 190 GrGLenum coverMode, GrGLenum transfor
mType, |
| 191 const GrGLfloat *transformValues); |
| 192 void stencilThenCoverStrokePathInstanced(GrGLsizei numPaths, GrGLenum pathNa
meType, |
| 193 const GrGLvoid *paths, GrGLuint pat
hBase, |
| 194 GrGLint reference, GrGLuint mask, |
| 195 GrGLenum coverMode, GrGLenum transf
ormType, |
| 196 const GrGLfloat *transformValues); |
| 197 |
| 182 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset | 198 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset |
| 183 // an into the index buffer. It does not account for drawInfo.startIndex() b
ut rather the start | 199 // an into the index buffer. It does not account for drawInfo.startIndex() b
ut rather the start |
| 184 // index is relative to the returned offset. | 200 // index is relative to the returned offset. |
| 185 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes); | 201 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes); |
| 186 | 202 |
| 187 // Subclasses should call this to flush the blend state. | 203 // Subclasses should call this to flush the blend state. |
| 188 // The params should be the final coefficients to apply | 204 // The params should be the final coefficients to apply |
| 189 // (after any blending optimizations or dual source blending considerations | 205 // (after any blending optimizations or dual source blending considerations |
| 190 // have been accounted for). | 206 // have been accounted for). |
| 191 void flushBlend(bool isLines, GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff); | 207 void flushBlend(bool isLines, GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 // we record what stencil format worked last time to hopefully exit early | 485 // we record what stencil format worked last time to hopefully exit early |
| 470 // from our loop that tries stencil formats and calls check fb status. | 486 // from our loop that tries stencil formats and calls check fb status. |
| 471 int fLastSuccessfulStencilFmtIdx; | 487 int fLastSuccessfulStencilFmtIdx; |
| 472 | 488 |
| 473 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; | 489 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; |
| 474 | 490 |
| 475 typedef GrGpu INHERITED; | 491 typedef GrGpu INHERITED; |
| 476 }; | 492 }; |
| 477 | 493 |
| 478 #endif | 494 #endif |
| OLD | NEW |