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

Side by Side Diff: src/gpu/effects/GrConfigConversionEffect.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/GrBicubicEffect.cpp ('k') | src/gpu/effects/GrConfigConversionEffect.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 2012 Google Inc. 2 * Copyright 2012 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 GrConfigConversionEffect_DEFINED 8 #ifndef GrConfigConversionEffect_DEFINED
9 #define GrConfigConversionEffect_DEFINED 9 #define GrConfigConversionEffect_DEFINED
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 static void TestForPreservingPMConversions(GrContext* context, 54 static void TestForPreservingPMConversions(GrContext* context,
55 PMConversion* PMToUPMRule, 55 PMConversion* PMToUPMRule,
56 PMConversion* UPMToPMRule); 56 PMConversion* UPMToPMRule);
57 57
58 private: 58 private:
59 GrConfigConversionEffect(GrTexture*, 59 GrConfigConversionEffect(GrTexture*,
60 bool swapRedAndBlue, 60 bool swapRedAndBlue,
61 PMConversion pmConversion, 61 PMConversion pmConversion,
62 const SkMatrix& matrix); 62 const SkMatrix& matrix);
63 63
64 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; 64 virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE;
65 65
66 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE; 66 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR IDE;
67 67
68 bool fSwapRedAndBlue; 68 bool fSwapRedAndBlue;
69 PMConversion fPMConversion; 69 PMConversion fPMConversion;
70 70
71 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 71 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
72 72
73 typedef GrSingleTextureEffect INHERITED; 73 typedef GrSingleTextureEffect INHERITED;
74 }; 74 };
75 75
76 #endif 76 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrBicubicEffect.cpp ('k') | src/gpu/effects/GrConfigConversionEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698