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