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

Side by Side Diff: include/effects/SkDashPathEffect.h

Issue 314623004: Move Dashing filterPath to a dashing utils file (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use gypi instead of gyp Created 6 years, 6 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 | « gyp/utils.gypi ('k') | src/effects/SkDashPathEffect.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 #ifndef SkDashPathEffect_DEFINED 8 #ifndef SkDashPathEffect_DEFINED
9 #define SkDashPathEffect_DEFINED 9 #define SkDashPathEffect_DEFINED
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual Factory getFactory() const SK_OVERRIDE; 54 virtual Factory getFactory() const SK_OVERRIDE;
55 55
56 static SkFlattenable* CreateProc(SkReadBuffer&); 56 static SkFlattenable* CreateProc(SkReadBuffer&);
57 57
58 protected: 58 protected:
59 SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase); 59 SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase);
60 explicit SkDashPathEffect(SkReadBuffer&); 60 explicit SkDashPathEffect(SkReadBuffer&);
61 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; 61 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
62 62
63 private: 63 private:
64 void setInternalMembers(SkScalar phase);
65
66 SkScalar* fIntervals; 64 SkScalar* fIntervals;
67 int32_t fCount; 65 int32_t fCount;
68 SkScalar fPhase; 66 SkScalar fPhase;
69 // computed from phase 67 // computed from phase
70 SkScalar fInitialDashLength; 68 SkScalar fInitialDashLength;
71 int32_t fInitialDashIndex; 69 int32_t fInitialDashIndex;
72 SkScalar fIntervalLength; 70 SkScalar fIntervalLength;
73 71
74 typedef SkPathEffect INHERITED; 72 typedef SkPathEffect INHERITED;
75 }; 73 };
76 74
77 #endif 75 #endif
OLDNEW
« no previous file with comments | « gyp/utils.gypi ('k') | src/effects/SkDashPathEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698