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

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

Issue 872043002: Add patheffects to debugger printout (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix merge conflict Created 5 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 | « 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::Create(buffer.readScalar());
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
72 #ifndef SK_IGNORE_TO_STRING
73 void SkArcToPathEffect::toString(SkString* str) const {
74 str->appendf("SkArcToPathEffect: (");
75 str->appendf("radius: %f", fRadius);
76 str->appendf(")");
77 }
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