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