OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 #ifndef SkClipStack_DEFINED | 8 #ifndef SkClipStack_DEFINED |
9 #define SkClipStack_DEFINED | 9 #define SkClipStack_DEFINED |
10 | 10 |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 446 |
447 friend bool operator==(const ClipCallbackData& a, | 447 friend bool operator==(const ClipCallbackData& a, |
448 const ClipCallbackData& b) { | 448 const ClipCallbackData& b) { |
449 return a.fCallback == b.fCallback && a.fData == b.fData; | 449 return a.fCallback == b.fCallback && a.fData == b.fData; |
450 } | 450 } |
451 }; | 451 }; |
452 | 452 |
453 mutable SkTDArray<ClipCallbackData> fCallbackData; | 453 mutable SkTDArray<ClipCallbackData> fCallbackData; |
454 | 454 |
455 /** | 455 /** |
| 456 * Restore the stack back to the specified save count. |
| 457 */ |
| 458 void restoreTo(int saveCount); |
| 459 |
| 460 /** |
456 * Invoke all the purge callbacks passing in element's generation ID. | 461 * Invoke all the purge callbacks passing in element's generation ID. |
457 */ | 462 */ |
458 void purgeClip(Element* element); | 463 void purgeClip(Element* element); |
459 | 464 |
460 /** | 465 /** |
461 * Return the next unique generation ID. | 466 * Return the next unique generation ID. |
462 */ | 467 */ |
463 static int32_t GetNextGenID(); | 468 static int32_t GetNextGenID(); |
464 }; | 469 }; |
465 | 470 |
466 #endif | 471 #endif |
OLD | NEW |