| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 /** | 264 /** |
| 265 * Writes the path points and verbs to a buffer. | 265 * Writes the path points and verbs to a buffer. |
| 266 */ | 266 */ |
| 267 void writeToBuffer(SkWBuffer* buffer) const; | 267 void writeToBuffer(SkWBuffer* buffer) const; |
| 268 | 268 |
| 269 /** | 269 /** |
| 270 * Gets the number of bytes that would be written in writeBuffer() | 270 * Gets the number of bytes that would be written in writeBuffer() |
| 271 */ | 271 */ |
| 272 uint32_t writeSize() const; | 272 uint32_t writeSize() const; |
| 273 | 273 |
| 274 void interpolate(const SkPathRef& ending, SkScalar weight, SkPathRef* out) c
onst; |
| 275 |
| 274 /** | 276 /** |
| 275 * Gets an ID that uniquely identifies the contents of the path ref. If two
path refs have the | 277 * Gets an ID that uniquely identifies the contents of the path ref. If two
path refs have the |
| 276 * same ID then they have the same verbs and points. However, two path refs
may have the same | 278 * same ID then they have the same verbs and points. However, two path refs
may have the same |
| 277 * contents but different genIDs. | 279 * contents but different genIDs. |
| 278 */ | 280 */ |
| 279 uint32_t genID() const; | 281 uint32_t genID() const; |
| 280 | 282 |
| 281 struct GenIDChangeListener { | 283 struct GenIDChangeListener { |
| 282 virtual ~GenIDChangeListener() {} | 284 virtual ~GenIDChangeListener() {} |
| 283 virtual void onChange() = 0; | 285 virtual void onChange() = 0; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 SkBool8 fIsOval; | 499 SkBool8 fIsOval; |
| 498 SkBool8 fIsRRect; | 500 SkBool8 fIsRRect; |
| 499 uint8_t fSegmentMask; | 501 uint8_t fSegmentMask; |
| 500 | 502 |
| 501 friend class PathRefTest_Private; | 503 friend class PathRefTest_Private; |
| 502 friend class ForceIsRRect_Private; // unit test isRRect | 504 friend class ForceIsRRect_Private; // unit test isRRect |
| 503 typedef SkRefCnt INHERITED; | 505 typedef SkRefCnt INHERITED; |
| 504 }; | 506 }; |
| 505 | 507 |
| 506 #endif | 508 #endif |
| OLD | NEW |