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

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

Issue 17432003: SkPath::rewind needs to have same reset as SkPath::reset. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 fSegmentMask = 0; 418 fSegmentMask = 0;
419 fLastMoveToIndex = INITIAL_LASTMOVETOINDEX_VALUE; 419 fLastMoveToIndex = INITIAL_LASTMOVETOINDEX_VALUE;
420 fIsOval = false; 420 fIsOval = false;
421 } 421 }
422 422
423 void SkPath::rewind() { 423 void SkPath::rewind() {
424 SkDEBUGCODE(this->validate();) 424 SkDEBUGCODE(this->validate();)
425 425
426 SkPathRef::Rewind(&fPathRef); 426 SkPathRef::Rewind(&fPathRef);
427 GEN_ID_INC; 427 GEN_ID_INC;
428 fBoundsIsDirty = true;
reed1 2013/06/19 12:30:10 Would be nice if we have a shared resetFields() he
428 fConvexity = kUnknown_Convexity; 429 fConvexity = kUnknown_Convexity;
429 fBoundsIsDirty = true; 430 fDirection = kUnknown_Direction;
430 fSegmentMask = 0; 431 fSegmentMask = 0;
431 fLastMoveToIndex = INITIAL_LASTMOVETOINDEX_VALUE; 432 fLastMoveToIndex = INITIAL_LASTMOVETOINDEX_VALUE;
432 fIsOval = false; 433 fIsOval = false;
433 } 434 }
434 435
435 bool SkPath::isEmpty() const { 436 bool SkPath::isEmpty() const {
436 SkDEBUGCODE(this->validate();) 437 SkDEBUGCODE(this->validate();)
437 return 0 == fPathRef->countVerbs(); 438 return 0 == fPathRef->countVerbs();
438 } 439 }
439 440
(...skipping 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after
3055 switch (this->getFillType()) { 3056 switch (this->getFillType()) {
3056 case SkPath::kEvenOdd_FillType: 3057 case SkPath::kEvenOdd_FillType:
3057 case SkPath::kInverseEvenOdd_FillType: 3058 case SkPath::kInverseEvenOdd_FillType:
3058 w &= 1; 3059 w &= 1;
3059 break; 3060 break;
3060 default: 3061 default:
3061 break; 3062 break;
3062 } 3063 }
3063 return SkToBool(w); 3064 return SkToBool(w);
3064 } 3065 }
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