| 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 GrGLGpu_DEFINED | 8 #ifndef GrGLGpu_DEFINED |
| 9 #define GrGLGpu_DEFINED | 9 #define GrGLGpu_DEFINED |
| 10 | 10 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 void onResolveRenderTarget(GrRenderTarget* target) override; | 212 void onResolveRenderTarget(GrRenderTarget* target) override; |
| 213 | 213 |
| 214 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; | 214 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; |
| 215 | 215 |
| 216 bool onCopySurface(GrSurface* dst, | 216 bool onCopySurface(GrSurface* dst, |
| 217 GrSurface* src, | 217 GrSurface* src, |
| 218 const SkIRect& srcRect, | 218 const SkIRect& srcRect, |
| 219 const SkIPoint& dstPoint) override; | 219 const SkIPoint& dstPoint) override; |
| 220 | 220 |
| 221 void onGetMultisampleSpecs(GrRenderTarget*, |
| 222 const GrStencilSettings&, |
| 223 int* effectiveSampleCnt, |
| 224 SamplePattern*) override; |
| 225 |
| 221 // binds texture unit in GL | 226 // binds texture unit in GL |
| 222 void setTextureUnit(int unitIdx); | 227 void setTextureUnit(int unitIdx); |
| 223 | 228 |
| 224 // Flushes state from GrPipeline to GL. Returns false if the state couldn't
be set. | 229 // Flushes state from GrPipeline to GL. Returns false if the state couldn't
be set. |
| 225 bool flushGLState(const DrawArgs&); | 230 bool flushGLState(const DrawArgs&); |
| 226 | 231 |
| 227 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset | 232 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset |
| 228 // an into the index buffer. It does not account for vertices.startIndex() b
ut rather the start | 233 // an into the index buffer. It does not account for vertices.startIndex() b
ut rather the start |
| 229 // index is relative to the returned offset. | 234 // index is relative to the returned offset. |
| 230 void setupGeometry(const GrPrimitiveProcessor&, | 235 void setupGeometry(const GrPrimitiveProcessor&, |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 } fPLSSetupProgram; | 609 } fPLSSetupProgram; |
| 605 | 610 |
| 606 bool fHWPLSEnabled; | 611 bool fHWPLSEnabled; |
| 607 bool fPLSHasBeenUsed; | 612 bool fPLSHasBeenUsed; |
| 608 | 613 |
| 609 typedef GrGpu INHERITED; | 614 typedef GrGpu INHERITED; |
| 610 friend class GrGLPathRendering; // For accessing setTextureUnit. | 615 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 611 }; | 616 }; |
| 612 | 617 |
| 613 #endif | 618 #endif |
| OLD | NEW |