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

Side by Side Diff: src/core/SkPath.cpp

Issue 22432005: remove uneeded SK_API declaration. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 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 #include "SkBuffer.h" 10 #include "SkBuffer.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 fLastMoveToIndex = that.fLastMoveToIndex; 219 fLastMoveToIndex = that.fLastMoveToIndex;
220 fFillType = that.fFillType; 220 fFillType = that.fFillType;
221 fSegmentMask = that.fSegmentMask; 221 fSegmentMask = that.fSegmentMask;
222 fBoundsIsDirty = that.fBoundsIsDirty; 222 fBoundsIsDirty = that.fBoundsIsDirty;
223 fConvexity = that.fConvexity; 223 fConvexity = that.fConvexity;
224 fDirection = that.fDirection; 224 fDirection = that.fDirection;
225 fIsFinite = that.fIsFinite; 225 fIsFinite = that.fIsFinite;
226 fIsOval = that.fIsOval; 226 fIsOval = that.fIsOval;
227 } 227 }
228 228
229 SK_API bool operator==(const SkPath& a, const SkPath& b) { 229 bool operator==(const SkPath& a, const SkPath& b) {
230 // note: don't need to look at isConvex or bounds, since just comparing the 230 // note: don't need to look at isConvex or bounds, since just comparing the
231 // raw data is sufficient. 231 // raw data is sufficient.
232 232
233 // We explicitly check fSegmentMask as a quick-reject. We could skip it, 233 // We explicitly check fSegmentMask as a quick-reject. We could skip it,
234 // since it is only a cache of info in the fVerbs, but its a fast way to 234 // since it is only a cache of info in the fVerbs, but its a fast way to
235 // notice a difference 235 // notice a difference
236 236
237 return &a == &b || 237 return &a == &b ||
238 (a.fFillType == b.fFillType && a.fSegmentMask == b.fSegmentMask && 238 (a.fFillType == b.fFillType && a.fSegmentMask == b.fSegmentMask &&
239 *a.fPathRef.get() == *b.fPathRef.get()); 239 *a.fPathRef.get() == *b.fPathRef.get());
(...skipping 2760 matching lines...) Expand 10 before | Expand all | Expand 10 after
3000 switch (this->getFillType()) { 3000 switch (this->getFillType()) {
3001 case SkPath::kEvenOdd_FillType: 3001 case SkPath::kEvenOdd_FillType:
3002 case SkPath::kInverseEvenOdd_FillType: 3002 case SkPath::kInverseEvenOdd_FillType:
3003 w &= 1; 3003 w &= 1;
3004 break; 3004 break;
3005 default: 3005 default:
3006 break; 3006 break;
3007 } 3007 }
3008 return SkToBool(w); 3008 return SkToBool(w);
3009 } 3009 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698