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

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

Issue 654273002: Push isEqual/onIsEqual down from GrProcessor to subclasses. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « src/effects/gradients/SkTwoPointRadialGradient.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 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
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
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 }
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointRadialGradient.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698