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 |
11 | 11 |
| 12 #include "../private/SkTDArray.h" |
12 #include "SkMatrix.h" | 13 #include "SkMatrix.h" |
13 #include "SkPoint.h" | 14 #include "SkPoint.h" |
14 #include "SkRRect.h" | 15 #include "SkRRect.h" |
15 #include "SkRect.h" | 16 #include "SkRect.h" |
16 #include "SkRefCnt.h" | 17 #include "SkRefCnt.h" |
17 #include "SkTDArray.h" | |
18 #include <stddef.h> // ptrdiff_t | 18 #include <stddef.h> // ptrdiff_t |
19 | 19 |
20 class SkRBuffer; | 20 class SkRBuffer; |
21 class SkWBuffer; | 21 class SkWBuffer; |
22 | 22 |
23 /** | 23 /** |
24 * Holds the path verbs and points. It is versioned by a generation ID. None of
its public methods | 24 * Holds the path verbs and points. It is versioned by a generation ID. None of
its public methods |
25 * modify the contents. To modify or append to the verbs/points wrap the SkPathR
ef in an | 25 * modify the contents. To modify or append to the verbs/points wrap the SkPathR
ef in an |
26 * SkPathRef::Editor object. Installing the editor resets the generation ID. It
also performs | 26 * SkPathRef::Editor object. Installing the editor resets the generation ID. It
also performs |
27 * copy-on-write if the SkPathRef is shared by multiple SkPaths. The caller pass
es the Editor's | 27 * copy-on-write if the SkPathRef is shared by multiple SkPaths. The caller pass
es the Editor's |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 SkBool8 fIsOval; | 497 SkBool8 fIsOval; |
498 SkBool8 fIsRRect; | 498 SkBool8 fIsRRect; |
499 uint8_t fSegmentMask; | 499 uint8_t fSegmentMask; |
500 | 500 |
501 friend class PathRefTest_Private; | 501 friend class PathRefTest_Private; |
502 friend class ForceIsRRect_Private; // unit test isRRect | 502 friend class ForceIsRRect_Private; // unit test isRRect |
503 typedef SkRefCnt INHERITED; | 503 typedef SkRefCnt INHERITED; |
504 }; | 504 }; |
505 | 505 |
506 #endif | 506 #endif |
OLD | NEW |