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 #include "GrConfigConversionEffect.h" | 8 #include "GrConfigConversionEffect.h" |
9 #include "GrContext.h" | 9 #include "GrContext.h" |
10 #include "GrDrawContext.h" | 10 #include "GrDrawContext.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 GrTest::TestMatrix(d->fRandom))); | 144 GrTest::TestMatrix(d->fRandom))); |
145 } | 145 } |
146 | 146 |
147 /////////////////////////////////////////////////////////////////////////////// | 147 /////////////////////////////////////////////////////////////////////////////// |
148 | 148 |
149 void GrConfigConversionEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, | 149 void GrConfigConversionEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, |
150 GrProcessorKeyBuilder* b) const
{ | 150 GrProcessorKeyBuilder* b) const
{ |
151 GrGLConfigConversionEffect::GenKey(*this, caps, b); | 151 GrGLConfigConversionEffect::GenKey(*this, caps, b); |
152 } | 152 } |
153 | 153 |
154 GrGLFragmentProcessor* GrConfigConversionEffect::createGLInstance() const { | 154 GrGLFragmentProcessor* GrConfigConversionEffect::onCreateGLInstance() const { |
155 return SkNEW_ARGS(GrGLConfigConversionEffect, (*this)); | 155 return SkNEW_ARGS(GrGLConfigConversionEffect, (*this)); |
156 } | 156 } |
157 | 157 |
158 | 158 |
159 | 159 |
160 void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context
, | 160 void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context
, |
161 PMConversion* pmTo
UPMRule, | 161 PMConversion* pmTo
UPMRule, |
162 PMConversion* upmT
oPMRule) { | 162 PMConversion* upmT
oPMRule) { |
163 *pmToUPMRule = kNone_PMConversion; | 163 *pmToUPMRule = kNone_PMConversion; |
164 *upmToPMRule = kNone_PMConversion; | 164 *upmToPMRule = kNone_PMConversion; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // The PM conversions assume colors are 0..255 | 314 // The PM conversions assume colors are 0..255 |
315 return NULL; | 315 return NULL; |
316 } | 316 } |
317 return SkNEW_ARGS(GrConfigConversionEffect, (procDataManager, | 317 return SkNEW_ARGS(GrConfigConversionEffect, (procDataManager, |
318 texture, | 318 texture, |
319 swapRedAndBlue, | 319 swapRedAndBlue, |
320 pmConversion, | 320 pmConversion, |
321 matrix)); | 321 matrix)); |
322 } | 322 } |
323 } | 323 } |
OLD | NEW |