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

Side by Side Diff: src/effects/SkLumaColorFilter.cpp

Issue 1228683002: rename GrShaderDataManager -> GrProcessorDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@grfixuptests
Patch Set: rebase onto origin/master Created 5 years, 5 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/effects/SkDisplacementMapEffect.cpp ('k') | src/effects/SkMagnifierImageFilter.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 2013 Google Inc. 2 * Copyright 2013 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 "SkLumaColorFilter.h" 8 #include "SkLumaColorFilter.h"
9 9
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 bool onIsEqual(const GrFragmentProcessor&) const override { return true; } 113 bool onIsEqual(const GrFragmentProcessor&) const override { return true; }
114 114
115 void onComputeInvariantOutput(GrInvariantOutput* inout) const override { 115 void onComputeInvariantOutput(GrInvariantOutput* inout) const override {
116 // The output is always black. The alpha value for the color passed in i s arbitrary. 116 // The output is always black. The alpha value for the color passed in i s arbitrary.
117 inout->setToOther(kRGB_GrColorComponentFlags, GrColorPackRGBA(0, 0, 0, 0 ), 117 inout->setToOther(kRGB_GrColorComponentFlags, GrColorPackRGBA(0, 0, 0, 0 ),
118 GrInvariantOutput::kWill_ReadInput); 118 GrInvariantOutput::kWill_ReadInput);
119 } 119 }
120 }; 120 };
121 121
122 bool SkLumaColorFilter::asFragmentProcessors(GrContext*, GrShaderDataManager*, 122 bool SkLumaColorFilter::asFragmentProcessors(GrContext*, GrProcessorDataManager* ,
123 SkTDArray<GrFragmentProcessor*>* ar ray) const { 123 SkTDArray<GrFragmentProcessor*>* ar ray) const {
124 124
125 GrFragmentProcessor* frag = LumaColorFilterEffect::Create(); 125 GrFragmentProcessor* frag = LumaColorFilterEffect::Create();
126 if (frag) { 126 if (frag) {
127 if (array) { 127 if (array) {
128 *array->append() = frag; 128 *array->append() = frag;
129 } else { 129 } else {
130 frag->unref(); 130 frag->unref();
131 SkDEBUGCODE(frag = NULL;) 131 SkDEBUGCODE(frag = NULL;)
132 } 132 }
133 return true; 133 return true;
134 } 134 }
135 return false; 135 return false;
136 } 136 }
137 #endif 137 #endif
OLDNEW
« no previous file with comments | « src/effects/SkDisplacementMapEffect.cpp ('k') | src/effects/SkMagnifierImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698