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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 268 |
269 protected: | 269 protected: |
270 SkProcXfermode(SkFlattenableReadBuffer&); | 270 SkProcXfermode(SkFlattenableReadBuffer&); |
271 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; | 271 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; |
272 | 272 |
273 // allow subclasses to update this after we unflatten | 273 // allow subclasses to update this after we unflatten |
274 void setProc(SkXfermodeProc proc) { | 274 void setProc(SkXfermodeProc proc) { |
275 fProc = proc; | 275 fProc = proc; |
276 } | 276 } |
277 | 277 |
| 278 SkXfermodeProc getProc() const { |
| 279 return fProc; |
| 280 } |
| 281 |
278 private: | 282 private: |
279 SkXfermodeProc fProc; | 283 SkXfermodeProc fProc; |
280 | 284 |
281 typedef SkXfermode INHERITED; | 285 typedef SkXfermode INHERITED; |
282 }; | 286 }; |
283 | 287 |
284 #endif | 288 #endif |
OLD | NEW |