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

Side by Side Diff: src/gpu/effects/GrConvexPolyEffect.h

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/gpu/effects/GrConfigConversionEffect.cpp ('k') | src/gpu/effects/GrConvexPolyEffect.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrConvexPolyEffect_DEFINED 8 #ifndef GrConvexPolyEffect_DEFINED
9 #define GrConvexPolyEffect_DEFINED 9 #define GrConvexPolyEffect_DEFINED
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 const SkScalar* getEdges() const { return fEdges; } 69 const SkScalar* getEdges() const { return fEdges; }
70 70
71 typedef GrGLConvexPolyEffect GLProcessor; 71 typedef GrGLConvexPolyEffect GLProcessor;
72 72
73 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR IDE; 73 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR IDE;
74 74
75 private: 75 private:
76 GrConvexPolyEffect(GrPrimitiveEdgeType edgeType, int n, const SkScalar edges []); 76 GrConvexPolyEffect(GrPrimitiveEdgeType edgeType, int n, const SkScalar edges []);
77 77
78 virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; 78 virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE;
79 79
80 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE; 80 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE;
81 81
82 GrPrimitiveEdgeType fEdgeType; 82 GrPrimitiveEdgeType fEdgeType;
83 int fEdgeCount; 83 int fEdgeCount;
84 SkScalar fEdges[3 * kMaxEdges]; 84 SkScalar fEdges[3 * kMaxEdges];
85 85
86 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 86 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
87 87
88 typedef GrFragmentProcessor INHERITED; 88 typedef GrFragmentProcessor INHERITED;
89 }; 89 };
90 90
91 91
92 #endif 92 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConfigConversionEffect.cpp ('k') | src/gpu/effects/GrConvexPolyEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698