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

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

Issue 974913002: ViaAndroidSDK for DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Derek's comment changes Created 5 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 | « include/core/SkPathEffect.h ('k') | include/effects/SkCornerPathEffect.h » ('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 Sk1DPathEffect_DEFINED 8 #ifndef Sk1DPathEffect_DEFINED
9 #define Sk1DPathEffect_DEFINED 9 #define Sk1DPathEffect_DEFINED
10 10
(...skipping 13 matching lines...) Expand all
24 into that contour. 24 into that contour.
25 */ 25 */
26 virtual SkScalar begin(SkScalar contourLength) const = 0; 26 virtual SkScalar begin(SkScalar contourLength) const = 0;
27 /** Called with the current distance along the path, with the current matrix 27 /** Called with the current distance along the path, with the current matrix
28 for the point/tangent at the specified distance. 28 for the point/tangent at the specified distance.
29 Return the distance to travel for the next call. If return <= 0, then th at 29 Return the distance to travel for the next call. If return <= 0, then th at
30 contour is done. 30 contour is done.
31 */ 31 */
32 virtual SkScalar next(SkPath* dst, SkScalar dist, SkPathMeasure&) const = 0; 32 virtual SkScalar next(SkPath* dst, SkScalar dist, SkPathMeasure&) const = 0;
33 33
34 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
35 bool exposedInAndroidJavaAPI() const SK_OVERRIDE { return true; }
36 #endif
37
34 private: 38 private:
35 typedef SkPathEffect INHERITED; 39 typedef SkPathEffect INHERITED;
36 }; 40 };
37 41
38 class SK_API SkPath1DPathEffect : public Sk1DPathEffect { 42 class SK_API SkPath1DPathEffect : public Sk1DPathEffect {
39 public: 43 public:
40 enum Style { 44 enum Style {
41 kTranslate_Style, // translate the shape to each position 45 kTranslate_Style, // translate the shape to each position
42 kRotate_Style, // rotate the shape about its center 46 kRotate_Style, // rotate the shape about its center
43 kMorph_Style, // transform each point, and turn lines into curves 47 kMorph_Style, // transform each point, and turn lines into curves
(...skipping 30 matching lines...) Expand all
74 private: 78 private:
75 SkPath fPath; // copied from constructor 79 SkPath fPath; // copied from constructor
76 SkScalar fAdvance; // copied from constructor 80 SkScalar fAdvance; // copied from constructor
77 SkScalar fInitialOffset; // computed from phase 81 SkScalar fInitialOffset; // computed from phase
78 Style fStyle; // copied from constructor 82 Style fStyle; // copied from constructor
79 83
80 typedef Sk1DPathEffect INHERITED; 84 typedef Sk1DPathEffect INHERITED;
81 }; 85 };
82 86
83 #endif 87 #endif
OLDNEW
« no previous file with comments | « include/core/SkPathEffect.h ('k') | include/effects/SkCornerPathEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698