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

Side by Side Diff: src/effects/Sk1DPathEffect.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/core/SkPathEffect.cpp ('k') | src/effects/Sk2DPathEffect.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 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 "Sk1DPathEffect.h" 10 #include "Sk1DPathEffect.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } break; 189 } break;
190 case kMorph_Style: 190 case kMorph_Style:
191 morphpath(dst, fPath, meas, distance); 191 morphpath(dst, fPath, meas, distance);
192 break; 192 break;
193 default: 193 default:
194 SkDEBUGFAIL("unknown Style enum"); 194 SkDEBUGFAIL("unknown Style enum");
195 break; 195 break;
196 } 196 }
197 return fAdvance; 197 return fAdvance;
198 } 198 }
199
200
201 #ifndef SK_IGNORE_TO_STRING
202 void SkPath1DPathEffect::toString(SkString* str) const {
203 str->appendf("SkPath1DPathEffect: (");
204 // TODO: add path and style
205 str->appendf("advance: %.2f phase %.2f", fAdvance, fInitialOffset);
206 str->appendf(")");
207 }
208 #endif
OLDNEW
« no previous file with comments | « src/core/SkPathEffect.cpp ('k') | src/effects/Sk2DPathEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698