OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "GrAAConvexPathRenderer.h" | 9 #include "GrAAConvexPathRenderer.h" |
10 | 10 |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 typedef GrGLGeometryProcessor INHERITED; | 577 typedef GrGLGeometryProcessor INHERITED; |
578 }; | 578 }; |
579 | 579 |
580 private: | 580 private: |
581 QuadEdgeEffect() | 581 QuadEdgeEffect() |
582 : fInQuadEdge(this->addVertexAttrib(GrShaderVar("inQuadEdge", | 582 : fInQuadEdge(this->addVertexAttrib(GrShaderVar("inQuadEdge", |
583 kVec4f_GrSLType, | 583 kVec4f_GrSLType, |
584 GrShaderVar::kAttribute_
TypeModifier))) { | 584 GrShaderVar::kAttribute_
TypeModifier))) { |
585 } | 585 } |
586 | 586 |
587 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE { | 587 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE { |
588 return true; | 588 return true; |
589 } | 589 } |
590 | 590 |
591 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { | 591 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { |
592 inout->mulByUnknownAlpha(); | 592 inout->mulByUnknownAlpha(); |
593 } | 593 } |
594 | 594 |
595 const GrShaderVar& fInQuadEdge; | 595 const GrShaderVar& fInQuadEdge; |
596 | 596 |
597 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 597 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 vOffset, // start vertex | 712 vOffset, // start vertex |
713 0, // start index | 713 0, // start index |
714 draw.fVertexCnt, | 714 draw.fVertexCnt, |
715 draw.fIndexCnt, | 715 draw.fIndexCnt, |
716 &devBounds); | 716 &devBounds); |
717 vOffset += draw.fVertexCnt; | 717 vOffset += draw.fVertexCnt; |
718 } | 718 } |
719 | 719 |
720 return true; | 720 return true; |
721 } | 721 } |
OLD | NEW |