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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 | 565 |
566 | 566 |
567 builder->fsCodeAppendf("\t%s = %s;\n", outputColor, | 567 builder->fsCodeAppendf("\t%s = %s;\n", outputColor, |
568 (GrGLSLExpr4(inputColor) * GrGLSLExpr1("edgeA
lpha")).c_str()); | 568 (GrGLSLExpr4(inputColor) * GrGLSLExpr1("edgeA
lpha")).c_str()); |
569 | 569 |
570 builder->vsCodeAppendf("\t%s = %s;\n", vsName, attrName->c_str()); | 570 builder->vsCodeAppendf("\t%s = %s;\n", vsName, attrName->c_str()); |
571 } | 571 } |
572 | 572 |
573 static inline void GenKey(const GrDrawEffect&, const GrGLCaps&, GrEffect
KeyBuilder*) {} | 573 static inline void GenKey(const GrDrawEffect&, const GrGLCaps&, GrEffect
KeyBuilder*) {} |
574 | 574 |
575 virtual void setData(const GrGLUniformManager&, const GrDrawEffect&) SK_
OVERRIDE {} | 575 virtual void setData(const GrGLProgramDataManager&, const GrDrawEffect&)
SK_OVERRIDE {} |
576 | 576 |
577 private: | 577 private: |
578 typedef GrGLVertexEffect INHERITED; | 578 typedef GrGLVertexEffect INHERITED; |
579 }; | 579 }; |
580 | 580 |
581 private: | 581 private: |
582 QuadEdgeEffect() { | 582 QuadEdgeEffect() { |
583 this->addVertexAttrib(kVec4f_GrSLType); | 583 this->addVertexAttrib(kVec4f_GrSLType); |
584 } | 584 } |
585 | 585 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 vOffset, // start vertex | 707 vOffset, // start vertex |
708 0, // start index | 708 0, // start index |
709 draw.fVertexCnt, | 709 draw.fVertexCnt, |
710 draw.fIndexCnt, | 710 draw.fIndexCnt, |
711 &devBounds); | 711 &devBounds); |
712 vOffset += draw.fVertexCnt; | 712 vOffset += draw.fVertexCnt; |
713 } | 713 } |
714 | 714 |
715 return true; | 715 return true; |
716 } | 716 } |
OLD | NEW |