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

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

Issue 1703943003: add interp path (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add test to error if conics don't match Created 4 years, 10 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/SkPath.h ('k') | src/core/SkPath.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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/core/SkPath.h ('k') | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698