Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1131)

Side by Side Diff: include/core/SkRegion.h

Issue 1111013002: Remove useless SkASSERT in SkRect.h and SkRegion.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkRect.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/core/SkRect.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698