| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2005 The Android Open Source Project | 3 * Copyright 2005 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 SkRegion_DEFINED | 10 #ifndef SkRegion_DEFINED |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 */ | 52 */ |
| 53 bool operator!=(const SkRegion& other) const { | 53 bool operator!=(const SkRegion& other) const { |
| 54 return !(*this == other); | 54 return !(*this == other); |
| 55 } | 55 } |
| 56 | 56 |
| 57 /** | 57 /** |
| 58 * Replace this region with the specified region, and return true if the | 58 * Replace this region with the specified region, and return true if the |
| 59 * resulting region is non-empty. | 59 * resulting region is non-empty. |
| 60 */ | 60 */ |
| 61 bool set(const SkRegion& src) { | 61 bool set(const SkRegion& src) { |
| 62 SkASSERT(&src); | |
| 63 *this = src; | 62 *this = src; |
| 64 return !this->isEmpty(); | 63 return !this->isEmpty(); |
| 65 } | 64 } |
| 66 | 65 |
| 67 /** | 66 /** |
| 68 * Swap the contents of this and the specified region. This operation | 67 * Swap the contents of this and the specified region. This operation |
| 69 * is gauarenteed to never fail. | 68 * is gauarenteed to never fail. |
| 70 */ | 69 */ |
| 71 void swap(SkRegion&); | 70 void swap(SkRegion&); |
| 72 | 71 |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 static bool Oper(const SkRegion&, const SkRegion&, SkRegion::Op, SkRegion*); | 443 static bool Oper(const SkRegion&, const SkRegion&, SkRegion::Op, SkRegion*); |
| 445 | 444 |
| 446 friend struct RunHead; | 445 friend struct RunHead; |
| 447 friend class Iterator; | 446 friend class Iterator; |
| 448 friend class Spanerator; | 447 friend class Spanerator; |
| 449 friend class SkRgnBuilder; | 448 friend class SkRgnBuilder; |
| 450 friend class SkFlatRegion; | 449 friend class SkFlatRegion; |
| 451 }; | 450 }; |
| 452 | 451 |
| 453 #endif | 452 #endif |
| OLD | NEW |