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

Side by Side Diff: src/effects/SkArcToPathEffect.cpp

Issue 1813123003: Reland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.or… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move flag into sktypes, so it is visible to both paint and other patheffect clients Created 4 years, 9 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 | « src/effects/Sk2DPathEffect.cpp ('k') | src/effects/SkCornerPathEffect.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkArcToPathEffect.h" 8 #include "SkArcToPathEffect.h"
9 #include "SkPath.h" 9 #include "SkPath.h"
10 #include "SkPoint.h" 10 #include "SkPoint.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 dst->lineTo(lastCorner); 55 dst->lineTo(lastCorner);
56 goto DONE; 56 goto DONE;
57 } 57 }
58 prevVerb = verb; 58 prevVerb = verb;
59 } 59 }
60 DONE: 60 DONE:
61 return true; 61 return true;
62 } 62 }
63 63
64 SkFlattenable* SkArcToPathEffect::CreateProc(SkReadBuffer& buffer) { 64 SkFlattenable* SkArcToPathEffect::CreateProc(SkReadBuffer& buffer) {
65 return SkArcToPathEffect::Create(buffer.readScalar()); 65 return SkArcToPathEffect::Make(buffer.readScalar()).release();
66 } 66 }
67 67
68 void SkArcToPathEffect::flatten(SkWriteBuffer& buffer) const { 68 void SkArcToPathEffect::flatten(SkWriteBuffer& buffer) const {
69 buffer.writeScalar(fRadius); 69 buffer.writeScalar(fRadius);
70 } 70 }
71 71
72 #ifndef SK_IGNORE_TO_STRING 72 #ifndef SK_IGNORE_TO_STRING
73 void SkArcToPathEffect::toString(SkString* str) const { 73 void SkArcToPathEffect::toString(SkString* str) const {
74 str->appendf("SkArcToPathEffect: ("); 74 str->appendf("SkArcToPathEffect: (");
75 str->appendf("radius: %f", fRadius); 75 str->appendf("radius: %f", fRadius);
76 str->appendf(")"); 76 str->appendf(")");
77 } 77 }
78 #endif 78 #endif
OLDNEW
« no previous file with comments | « src/effects/Sk2DPathEffect.cpp ('k') | src/effects/SkCornerPathEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698