146 {
147 switch (channelFlags) {
150 if (channelIdx == 0) {
152 return true;
153 }
154 return false;
156 switch (channelIdx) {
159
160 default: return false;
161 }
163 if (channelIdx == 0) {
165 return true;
166 }
167 return false;
169 if (channelIdx == 0 || channelIdx == 1) {
171 return true;
172 }
173 return false;
175 if (channelIdx >= 0 && channelIdx <= 2) {
177 return true;
178 }
179 return false;
181 if (channelIdx >= 0 && channelIdx <= 3) {
183 return true;
184 }
185 return false;
186 default:
187 return false;
188 }
189}
@ kRGB_SkColorChannelFlags
@ kRGBA_SkColorChannelFlags
@ kRed_SkColorChannelFlag
@ kGrayAlpha_SkColorChannelFlags
@ kRG_SkColorChannelFlags
@ kAlpha_SkColorChannelFlag
@ kGray_SkColorChannelFlag