Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/gpu/GrAAHairLinePathRenderer.cpp

Issue 14998007: Make GrGLShaderBuilder check whether GrEffect advertised that it would require the dst color or frag (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/effects/SkLightingImageFilter.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/effects/SkLightingImageFilter.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698