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 SkXfermode_DEFINED | 10 #ifndef SkXfermode_DEFINED |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 This method will not be called directly by the client, so it need not | 231 This method will not be called directly by the client, so it need not |
232 be implemented if your subclass has overridden xfer32/xfer16/xferA8 | 232 be implemented if your subclass has overridden xfer32/xfer16/xferA8 |
233 */ | 233 */ |
234 virtual SkPMColor xferColor(SkPMColor src, SkPMColor dst) const; | 234 virtual SkPMColor xferColor(SkPMColor src, SkPMColor dst) const; |
235 | 235 |
236 private: | 236 private: |
237 enum { | 237 enum { |
238 kModeCount = kLastMode + 1 | 238 kModeCount = kLastMode + 1 |
239 }; | 239 }; |
| 240 |
| 241 friend class SkGraphics; |
| 242 static void Term(); |
| 243 |
240 typedef SkFlattenable INHERITED; | 244 typedef SkFlattenable INHERITED; |
241 }; | 245 }; |
242 | 246 |
243 /////////////////////////////////////////////////////////////////////////////// | 247 /////////////////////////////////////////////////////////////////////////////// |
244 | 248 |
245 /** \class SkProcXfermode | 249 /** \class SkProcXfermode |
246 | 250 |
247 SkProcXfermode is a xfermode that applies the specified proc to its colors. | 251 SkProcXfermode is a xfermode that applies the specified proc to its colors. |
248 This class is not exported to java. | 252 This class is not exported to java. |
249 */ | 253 */ |
(...skipping 21 matching lines...) Expand all Loading... |
271 fProc = proc; | 275 fProc = proc; |
272 } | 276 } |
273 | 277 |
274 private: | 278 private: |
275 SkXfermodeProc fProc; | 279 SkXfermodeProc fProc; |
276 | 280 |
277 typedef SkXfermode INHERITED; | 281 typedef SkXfermode INHERITED; |
278 }; | 282 }; |
279 | 283 |
280 #endif | 284 #endif |
OLD | NEW |