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

Side by Side Diff: src/effects/SkDiscretePathEffect.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, 11 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/SkDashPathEffect.cpp ('k') | no next file » | 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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 9
10 #include "SkDiscretePathEffect.h" 10 #include "SkDiscretePathEffect.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 SkScalar perterb = buffer.readScalar(); 121 SkScalar perterb = buffer.readScalar();
122 uint32_t seed = buffer.readUInt(); 122 uint32_t seed = buffer.readUInt();
123 return Create(segLength, perterb, seed); 123 return Create(segLength, perterb, seed);
124 } 124 }
125 125
126 void SkDiscretePathEffect::flatten(SkWriteBuffer& buffer) const { 126 void SkDiscretePathEffect::flatten(SkWriteBuffer& buffer) const {
127 buffer.writeScalar(fSegLength); 127 buffer.writeScalar(fSegLength);
128 buffer.writeScalar(fPerterb); 128 buffer.writeScalar(fPerterb);
129 buffer.writeUInt(fSeedAssist); 129 buffer.writeUInt(fSeedAssist);
130 } 130 }
131
132 #ifndef SK_IGNORE_TO_STRING
133 void SkDiscretePathEffect::toString(SkString* str) const {
134 str->appendf("SkDiscretePathEffect: (");
135 str->appendf("segLength: %.2f deviation: %.2f seed %d", fSegLength, fPerterb , fSeedAssist);
136 str->append(")");
137 }
138 #endif
OLDNEW
« no previous file with comments | « src/effects/SkDashPathEffect.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698