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

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

Issue 2235363002: Always init SkPathRef variables. (Closed) Base URL: https://skia.googlesource.com/skia.git@m53
Patch Set: Created 4 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
« 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 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
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
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
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