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 | |
282 private: | 278 private: |
283 SkXfermodeProc fProc; | 279 SkXfermodeProc fProc; |
284 | 280 |
285 typedef SkXfermode INHERITED; | 281 typedef SkXfermode INHERITED; |
286 }; | 282 }; |
287 | 283 |
288 #endif | 284 #endif |
OLD | NEW |