Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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); | |
|
f(malita)
2015/03/02 00:47:07
I was expecting the arg order to correspond to the
| |
| 131 | |
| 126 /** A subclass may implement this factory function to work with the GPU back end. If the return | 132 /** A subclass may implement this factory function to work with the GPU back end. If the return |
| 127 is non-NULL then the caller owns a ref on the returned object. | 133 is non-NULL then the caller owns a ref on the returned object. |
| 128 */ | 134 */ |
| 129 virtual GrFragmentProcessor* asFragmentProcessor(GrContext*) const; | 135 virtual GrFragmentProcessor* asFragmentProcessor(GrContext*) const; |
| 130 | 136 |
| 131 SK_TO_STRING_PUREVIRT() | 137 SK_TO_STRING_PUREVIRT() |
| 132 | 138 |
| 133 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() | 139 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() |
| 134 SK_DEFINE_FLATTENABLE_TYPE(SkColorFilter) | 140 SK_DEFINE_FLATTENABLE_TYPE(SkColorFilter) |
| 135 | 141 |
| 136 protected: | 142 protected: |
| 137 SkColorFilter() {} | 143 SkColorFilter() {} |
| 138 | 144 |
| 139 private: | 145 private: |
| 140 typedef SkFlattenable INHERITED; | 146 typedef SkFlattenable INHERITED; |
| 141 }; | 147 }; |
| 142 | 148 |
| 143 #endif | 149 #endif |
| OLD | NEW |