OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 "GrAAHairLinePathRenderer.h" | 9 #include "GrAAHairLinePathRenderer.h" |
10 | 10 |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 | 659 |
660 virtual void setData(const GrGLUniformManager&, const GrDrawEffect&) SK_
OVERRIDE {} | 660 virtual void setData(const GrGLUniformManager&, const GrDrawEffect&) SK_
OVERRIDE {} |
661 | 661 |
662 private: | 662 private: |
663 typedef GrGLEffect INHERITED; | 663 typedef GrGLEffect INHERITED; |
664 }; | 664 }; |
665 | 665 |
666 private: | 666 private: |
667 HairLineEdgeEffect() { | 667 HairLineEdgeEffect() { |
668 this->addVertexAttrib(kVec4f_GrSLType); | 668 this->addVertexAttrib(kVec4f_GrSLType); |
| 669 this->setWillReadFragmentPosition(); |
669 } | 670 } |
670 | 671 |
671 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { | 672 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { |
672 return true; | 673 return true; |
673 } | 674 } |
674 | 675 |
675 GR_DECLARE_EFFECT_TEST; | 676 GR_DECLARE_EFFECT_TEST; |
676 | 677 |
677 typedef GrEffect INHERITED; | 678 typedef GrEffect INHERITED; |
678 }; | 679 }; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 4 * lineCnt + kVertsPerQuad*quads, // startV | 839 4 * lineCnt + kVertsPerQuad*quads, // startV |
839 0, // startI | 840 0, // startI |
840 kVertsPerQuad*n, // vCount | 841 kVertsPerQuad*n, // vCount |
841 kIdxsPerQuad*n); // iCount | 842 kIdxsPerQuad*n); // iCount |
842 quads += n; | 843 quads += n; |
843 } | 844 } |
844 target->resetIndexSource(); | 845 target->resetIndexSource(); |
845 | 846 |
846 return true; | 847 return true; |
847 } | 848 } |
OLD | NEW |