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

Side by Side Diff: src/gpu/effects/GrConfigConversionEffect.cpp

Issue 1287023009: Added tree structure to GrGLFragmentProcessor, i.e. GL instances (Closed) Base URL: https://skia.googlesource.com/skia@cs3_isequal_nonrecursive
Patch Set: moved onSetData from public to protected, onCreateGLInstance from public to private in subclasses Created 5 years, 4 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.h ('k') | src/gpu/effects/GrConstColorProcessor.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 #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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConfigConversionEffect.h ('k') | src/gpu/effects/GrConstColorProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698