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

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

Issue 132803005: SkOnce: add option to call another cleanup function once at exit. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add static Created 6 years, 11 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/SkOnce.h ('k') | src/core/SkData.cpp » ('j') | 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 */ 411 */
412 size_t currSize() const { 412 size_t currSize() const {
413 return reinterpret_cast<intptr_t>(fVerbs) - reinterpret_cast<intptr_t>(f Points); 413 return reinterpret_cast<intptr_t>(fVerbs) - reinterpret_cast<intptr_t>(f Points);
414 } 414 }
415 415
416 SkDEBUGCODE(void validate() const;) 416 SkDEBUGCODE(void validate() const;)
417 417
418 /** 418 /**
419 * Called the first time someone calls CreateEmpty to actually create the si ngleton. 419 * Called the first time someone calls CreateEmpty to actually create the si ngleton.
420 */ 420 */
421 static void CreateEmptyImpl(SkPathRef** empty); 421 static void CreateEmptyImpl(int/*unused*/);
422 422
423 void setIsOval(bool isOval) { fIsOval = isOval; } 423 void setIsOval(bool isOval) { fIsOval = isOval; }
424 424
425 SkPoint* getPoints() { 425 SkPoint* getPoints() {
426 SkDEBUGCODE(this->validate();) 426 SkDEBUGCODE(this->validate();)
427 fIsOval = false; 427 fIsOval = false;
428 return fPoints; 428 return fPoints;
429 } 429 }
430 430
431 enum { 431 enum {
(...skipping 17 matching lines...) Expand all
449 kEmptyGenID = 1, // GenID reserved for path ref with zero points and zer o verbs. 449 kEmptyGenID = 1, // GenID reserved for path ref with zero points and zer o verbs.
450 }; 450 };
451 mutable uint32_t fGenerationID; 451 mutable uint32_t fGenerationID;
452 SkDEBUGCODE(int32_t fEditorsAttached;) // assert that only one editor in use at any time. 452 SkDEBUGCODE(int32_t fEditorsAttached;) // assert that only one editor in use at any time.
453 453
454 friend class PathRefTest_Private; 454 friend class PathRefTest_Private;
455 typedef SkRefCnt INHERITED; 455 typedef SkRefCnt INHERITED;
456 }; 456 };
457 457
458 #endif 458 #endif
OLDNEW
« no previous file with comments | « include/core/SkOnce.h ('k') | src/core/SkData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698