| 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 | 8 |
| 9 | 9 |
| 10 #ifndef GrGpuGL_DEFINED | 10 #ifndef GrGpuGL_DEFINED |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 virtual void setStencilPathSettings(const GrPath&, | 129 virtual void setStencilPathSettings(const GrPath&, |
| 130 SkPath::FillType, | 130 SkPath::FillType, |
| 131 GrStencilSettings* settings) | 131 GrStencilSettings* settings) |
| 132 SK_OVERRIDE; | 132 SK_OVERRIDE; |
| 133 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; | 133 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; |
| 134 | 134 |
| 135 virtual void clearStencil() SK_OVERRIDE; | 135 virtual void clearStencil() SK_OVERRIDE; |
| 136 virtual void clearStencilClip(const GrIRect& rect, | 136 virtual void clearStencilClip(const GrIRect& rect, |
| 137 bool insideClip) SK_OVERRIDE; | 137 bool insideClip) SK_OVERRIDE; |
| 138 virtual bool flushGraphicsState(DrawType) SK_OVERRIDE; | 138 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop
y) SK_OVERRIDE; |
| 139 | 139 |
| 140 // binds texture unit in GL | 140 // binds texture unit in GL |
| 141 void setTextureUnit(int unitIdx); | 141 void setTextureUnit(int unitIdx); |
| 142 | 142 |
| 143 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset | 143 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset |
| 144 // an into the index buffer. It does not account for drawInfo.startIndex() b
ut rather the start | 144 // an into the index buffer. It does not account for drawInfo.startIndex() b
ut rather the start |
| 145 // index is relative to the returned offset. | 145 // index is relative to the returned offset. |
| 146 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes); | 146 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes); |
| 147 | 147 |
| 148 // Subclasses should call this to flush the blend state. | 148 // Subclasses should call this to flush the blend state. |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 ///@} | 425 ///@} |
| 426 | 426 |
| 427 // we record what stencil format worked last time to hopefully exit early | 427 // we record what stencil format worked last time to hopefully exit early |
| 428 // from our loop that tries stencil formats and calls check fb status. | 428 // from our loop that tries stencil formats and calls check fb status. |
| 429 int fLastSuccessfulStencilFmtIdx; | 429 int fLastSuccessfulStencilFmtIdx; |
| 430 | 430 |
| 431 typedef GrGpu INHERITED; | 431 typedef GrGpu INHERITED; |
| 432 }; | 432 }; |
| 433 | 433 |
| 434 #endif | 434 #endif |
| OLD | NEW |