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

Side by Side Diff: include/core/SkColorFilter.h

Issue 971653002: Revert of add compose-colorfilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « gm/tablecolorfilter.cpp ('k') | src/core/SkColorFilter.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkColorFilter_DEFINED 10 #ifndef SkColorFilter_DEFINED
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 */ 116 */
117 static SkColorFilter* CreateModeFilter(SkColor c, SkXfermode::Mode mode); 117 static SkColorFilter* CreateModeFilter(SkColor c, SkXfermode::Mode mode);
118 118
119 /** Create a colorfilter that multiplies the RGB channels by one color, and 119 /** Create a colorfilter that multiplies the RGB channels by one color, and
120 then adds a second color, pinning the result for each component to 120 then adds a second color, pinning the result for each component to
121 [0..255]. The alpha components of the mul and add arguments 121 [0..255]. The alpha components of the mul and add arguments
122 are ignored. 122 are ignored.
123 */ 123 */
124 static SkColorFilter* CreateLightingFilter(SkColor mul, SkColor add); 124 static SkColorFilter* CreateLightingFilter(SkColor mul, SkColor add);
125 125
126 /** Construct a colorfilter whose effect is to first apply the inner filter and then apply
127 * the outer filter to the result of the inner's.
128 * The reference counts for outer and inner are incremented.
129 */
130 static SkColorFilter* CreateComposeFilter(SkColorFilter* outer, SkColorFilte r* inner);
131
132 /** A subclass may implement this factory function to work with the GPU back end. If the return 126 /** A subclass may implement this factory function to work with the GPU back end. If the return
133 is non-NULL then the caller owns a ref on the returned object. 127 is non-NULL then the caller owns a ref on the returned object.
134 */ 128 */
135 virtual GrFragmentProcessor* asFragmentProcessor(GrContext*) const; 129 virtual GrFragmentProcessor* asFragmentProcessor(GrContext*) const;
136 130
137 SK_TO_STRING_PUREVIRT() 131 SK_TO_STRING_PUREVIRT()
138 132
139 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() 133 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
140 SK_DEFINE_FLATTENABLE_TYPE(SkColorFilter) 134 SK_DEFINE_FLATTENABLE_TYPE(SkColorFilter)
141 135
142 protected: 136 protected:
143 SkColorFilter() {} 137 SkColorFilter() {}
144 138
145 private: 139 private:
146 typedef SkFlattenable INHERITED; 140 typedef SkFlattenable INHERITED;
147 }; 141 };
148 142
149 #endif 143 #endif
OLDNEW
« no previous file with comments | « gm/tablecolorfilter.cpp ('k') | src/core/SkColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698