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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 GrProcessor& 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->fValidFlags = 0; | 592 inout->mulByUnknownAlpha(); |
593 inout->fIsSingleComponent = false; | |
594 } | 593 } |
595 | 594 |
596 const GrShaderVar& fInQuadEdge; | 595 const GrShaderVar& fInQuadEdge; |
597 | 596 |
598 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 597 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
599 | 598 |
600 typedef GrFragmentProcessor INHERITED; | 599 typedef GrFragmentProcessor INHERITED; |
601 }; | 600 }; |
602 | 601 |
603 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(QuadEdgeEffect); | 602 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(QuadEdgeEffect); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 vOffset, // start vertex | 712 vOffset, // start vertex |
714 0, // start index | 713 0, // start index |
715 draw.fVertexCnt, | 714 draw.fVertexCnt, |
716 draw.fIndexCnt, | 715 draw.fIndexCnt, |
717 &devBounds); | 716 &devBounds); |
718 vOffset += draw.fVertexCnt; | 717 vOffset += draw.fVertexCnt; |
719 } | 718 } |
720 | 719 |
721 return true; | 720 return true; |
722 } | 721 } |
OLD | NEW |