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

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

Issue 1388113002: Bye bye processor data manager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove files Created 5 years, 2 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/SkLightingImageFilter.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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 bool onIsEqual(const GrFragmentProcessor&) const override { return true; } 102 bool onIsEqual(const GrFragmentProcessor&) const override { return true; }
103 103
104 void onComputeInvariantOutput(GrInvariantOutput* inout) const override { 104 void onComputeInvariantOutput(GrInvariantOutput* inout) const override {
105 // The output is always black. The alpha value for the color passed in i s arbitrary. 105 // The output is always black. The alpha value for the color passed in i s arbitrary.
106 inout->setToOther(kRGB_GrColorComponentFlags, GrColorPackRGBA(0, 0, 0, 0 ), 106 inout->setToOther(kRGB_GrColorComponentFlags, GrColorPackRGBA(0, 0, 0, 0 ),
107 GrInvariantOutput::kWill_ReadInput); 107 GrInvariantOutput::kWill_ReadInput);
108 } 108 }
109 }; 109 };
110 110
111 const GrFragmentProcessor* SkLumaColorFilter::asFragmentProcessor(GrContext*, 111 const GrFragmentProcessor* SkLumaColorFilter::asFragmentProcessor(GrContext*) co nst {
112 GrProcessorDat aManager*) const {
113 112
114 return LumaColorFilterEffect::Create(); 113 return LumaColorFilterEffect::Create();
115 } 114 }
116 #endif 115 #endif
OLDNEW
« no previous file with comments | « src/effects/SkLightingImageFilter.cpp ('k') | src/effects/SkMagnifierImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698