OLD | NEW |
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 Loading... |
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 GrGLSLFragmentProcessor* onCreateGLInstance() const override; | 59 GrGLSLFragmentProcessor* onCreateGLSLInstance() const override; |
60 | 60 |
61 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov
erride; | 61 void onGetGLSLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const
override; |
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 |
OLD | NEW |