| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; | 157 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; |
| 158 virtual void onGpuDrawPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; | 158 virtual void onGpuDrawPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; |
| 159 | 159 |
| 160 virtual void clearStencil() SK_OVERRIDE; | 160 virtual void clearStencil() SK_OVERRIDE; |
| 161 virtual void clearStencilClip(const SkIRect& rect, | 161 virtual void clearStencilClip(const SkIRect& rect, |
| 162 bool insideClip) SK_OVERRIDE; | 162 bool insideClip) SK_OVERRIDE; |
| 163 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop
y) SK_OVERRIDE; | 163 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop
y) SK_OVERRIDE; |
| 164 | 164 |
| 165 // GrDrawTarget ovverides | 165 // GrDrawTarget ovverides |
| 166 virtual void onInstantGpuTraceEvent(const char* marker) SK_OVERRIDE; | 166 virtual void onAddGpuTraceMarker() SK_OVERRIDE; |
| 167 virtual void onPushGpuTraceEvent(const char* marker) SK_OVERRIDE; | 167 virtual void onRemoveGpuTraceMarker() SK_OVERRIDE; |
| 168 virtual void onPopGpuTraceEvent() SK_OVERRIDE; | |
| 169 | |
| 170 | 168 |
| 171 // binds texture unit in GL | 169 // binds texture unit in GL |
| 172 void setTextureUnit(int unitIdx); | 170 void setTextureUnit(int unitIdx); |
| 173 | 171 |
| 174 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset | 172 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset |
| 175 // an into the index buffer. It does not account for drawInfo.startIndex() b
ut rather the start | 173 // an into the index buffer. It does not account for drawInfo.startIndex() b
ut rather the start |
| 176 // index is relative to the returned offset. | 174 // index is relative to the returned offset. |
| 177 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes); | 175 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes); |
| 178 | 176 |
| 179 // Subclasses should call this to flush the blend state. | 177 // Subclasses should call this to flush the blend state. |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 ///@} | 453 ///@} |
| 456 | 454 |
| 457 // we record what stencil format worked last time to hopefully exit early | 455 // we record what stencil format worked last time to hopefully exit early |
| 458 // from our loop that tries stencil formats and calls check fb status. | 456 // from our loop that tries stencil formats and calls check fb status. |
| 459 int fLastSuccessfulStencilFmtIdx; | 457 int fLastSuccessfulStencilFmtIdx; |
| 460 | 458 |
| 461 typedef GrGpu INHERITED; | 459 typedef GrGpu INHERITED; |
| 462 }; | 460 }; |
| 463 | 461 |
| 464 #endif | 462 #endif |
| OLD | NEW |