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

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

Issue 29143005: Constify SkFlattenable::getFactory(). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkFlattenableBuffers.h ('k') | src/core/SkFlattenableBuffers.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 29 matching lines...) Expand all
40 bool scaleToFit = false); 40 bool scaleToFit = false);
41 virtual ~SkDashPathEffect(); 41 virtual ~SkDashPathEffect();
42 42
43 virtual bool filterPath(SkPath* dst, const SkPath& src, 43 virtual bool filterPath(SkPath* dst, const SkPath& src,
44 SkStrokeRec*, const SkRect*) const SK_OVERRIDE; 44 SkStrokeRec*, const SkRect*) const SK_OVERRIDE;
45 45
46 virtual bool asPoints(PointData* results, const SkPath& src, 46 virtual bool asPoints(PointData* results, const SkPath& src,
47 const SkStrokeRec&, const SkMatrix&, 47 const SkStrokeRec&, const SkMatrix&,
48 const SkRect*) const SK_OVERRIDE; 48 const SkRect*) const SK_OVERRIDE;
49 49
50 virtual Factory getFactory() SK_OVERRIDE; 50 virtual Factory getFactory() const SK_OVERRIDE;
51 51
52 static SkFlattenable* CreateProc(SkFlattenableReadBuffer&); 52 static SkFlattenable* CreateProc(SkFlattenableReadBuffer&);
53 53
54 protected: 54 protected:
55 SkDashPathEffect(SkFlattenableReadBuffer&); 55 SkDashPathEffect(SkFlattenableReadBuffer&);
56 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; 56 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
57 57
58 private: 58 private:
59 SkScalar* fIntervals; 59 SkScalar* fIntervals;
60 int32_t fCount; 60 int32_t fCount;
61 // computed from phase 61 // computed from phase
62 SkScalar fInitialDashLength; 62 SkScalar fInitialDashLength;
63 int32_t fInitialDashIndex; 63 int32_t fInitialDashIndex;
64 SkScalar fIntervalLength; 64 SkScalar fIntervalLength;
65 bool fScaleToFit; 65 bool fScaleToFit;
66 66
67 typedef SkPathEffect INHERITED; 67 typedef SkPathEffect INHERITED;
68 }; 68 };
69 69
70 #endif 70 #endif
OLDNEW
« no previous file with comments | « include/core/SkFlattenableBuffers.h ('k') | src/core/SkFlattenableBuffers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698