OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 | 8 |
9 #ifndef SkPathRef_DEFINED | 9 #ifndef SkPathRef_DEFINED |
10 #define SkPathRef_DEFINED | 10 #define SkPathRef_DEFINED |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 fPointCnt = 0; | 328 fPointCnt = 0; |
329 fVerbCnt = 0; | 329 fVerbCnt = 0; |
330 fVerbs = NULL; | 330 fVerbs = NULL; |
331 fPoints = NULL; | 331 fPoints = NULL; |
332 fFreeSpace = 0; | 332 fFreeSpace = 0; |
333 fGenerationID = kEmptyGenID; | 333 fGenerationID = kEmptyGenID; |
334 fSegmentMask = 0; | 334 fSegmentMask = 0; |
335 fIsOval = false; | 335 fIsOval = false; |
336 fIsRRect = false; | 336 fIsRRect = false; |
337 // The next two values don't matter unless fIsOval or fIsRRect are true. | 337 // The next two values don't matter unless fIsOval or fIsRRect are true. |
338 SkDEBUGCODE(fRRectOrOvalIsCCW = false); | 338 fRRectOrOvalIsCCW = false; |
339 SkDEBUGCODE(fRRectOrOvalStartIdx = 0xAC); | 339 fRRectOrOvalStartIdx = 0xAC; |
340 SkDEBUGCODE(fEditorsAttached = 0;) | 340 SkDEBUGCODE(fEditorsAttached = 0;) |
341 SkDEBUGCODE(this->validate();) | 341 SkDEBUGCODE(this->validate();) |
342 } | 342 } |
343 | 343 |
344 void copy(const SkPathRef& ref, int additionalReserveVerbs, int additionalRe
servePoints); | 344 void copy(const SkPathRef& ref, int additionalReserveVerbs, int additionalRe
servePoints); |
345 | 345 |
346 // Return true if the computed bounds are finite. | 346 // Return true if the computed bounds are finite. |
347 static bool ComputePtBounds(SkRect* bounds, const SkPathRef& ref) { | 347 static bool ComputePtBounds(SkRect* bounds, const SkPathRef& ref) { |
348 return bounds->setBoundsCheck(ref.points(), ref.countPoints()); | 348 return bounds->setBoundsCheck(ref.points(), ref.countPoints()); |
349 } | 349 } |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 SkBool8 fRRectOrOvalIsCCW; | 540 SkBool8 fRRectOrOvalIsCCW; |
541 uint8_t fRRectOrOvalStartIdx; | 541 uint8_t fRRectOrOvalStartIdx; |
542 uint8_t fSegmentMask; | 542 uint8_t fSegmentMask; |
543 | 543 |
544 friend class PathRefTest_Private; | 544 friend class PathRefTest_Private; |
545 friend class ForceIsRRect_Private; // unit test isRRect | 545 friend class ForceIsRRect_Private; // unit test isRRect |
546 typedef SkRefCnt INHERITED; | 546 typedef SkRefCnt INHERITED; |
547 }; | 547 }; |
548 | 548 |
549 #endif | 549 #endif |
OLD | NEW |