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/effects/GrConfigConversionEffect.h

Issue 1434313002: Make all GrFragmentProcessors GL independent. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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/GrBitmapTextGeoProc.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 static void TestForPreservingPMConversions(GrContext* context, 49 static void TestForPreservingPMConversions(GrContext* context,
50 PMConversion* PMToUPMRule, 50 PMConversion* PMToUPMRule,
51 PMConversion* UPMToPMRule); 51 PMConversion* UPMToPMRule);
52 52
53 private: 53 private:
54 GrConfigConversionEffect(GrTexture*, 54 GrConfigConversionEffect(GrTexture*,
55 bool swapRedAndBlue, 55 bool swapRedAndBlue,
56 PMConversion pmConversion, 56 PMConversion pmConversion,
57 const SkMatrix& matrix); 57 const SkMatrix& matrix);
58 58
59 GrGLFragmentProcessor* onCreateGLInstance() const override; 59 GrGLSLFragmentProcessor* onCreateGLInstance() const override;
60 60
61 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov erride; 61 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov erride;
62 62
63 bool onIsEqual(const GrFragmentProcessor&) const override; 63 bool onIsEqual(const GrFragmentProcessor&) const override;
64 64
65 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; 65 void onComputeInvariantOutput(GrInvariantOutput* inout) const override;
66 66
67 bool fSwapRedAndBlue; 67 bool fSwapRedAndBlue;
68 PMConversion fPMConversion; 68 PMConversion fPMConversion;
69 69
70 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 70 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
71 71
72 typedef GrSingleTextureEffect INHERITED; 72 typedef GrSingleTextureEffect INHERITED;
73 }; 73 };
74 74
75 #endif 75 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrBitmapTextGeoProc.cpp ('k') | src/gpu/effects/GrConfigConversionEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698