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

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

Issue 841753002: Remove macros that make it look like it's a good idea to not be able to flatten. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: DummyRasterizer too 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 | « include/core/SkFlattenable.h ('k') | src/animator/SkDrawExtraPathEffect.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 Sk2DPathEffect_DEFINED 8 #ifndef Sk2DPathEffect_DEFINED
9 #define Sk2DPathEffect_DEFINED 9 #define Sk2DPathEffect_DEFINED
10 10
11 #include "SkPath.h" 11 #include "SkPath.h"
12 #include "SkPathEffect.h" 12 #include "SkPathEffect.h"
13 #include "SkMatrix.h" 13 #include "SkMatrix.h"
14 14
15 class SK_API Sk2DPathEffect : public SkPathEffect { 15 class SK_API Sk2DPathEffect : public SkPathEffect {
16 public: 16 public:
17 virtual bool filterPath(SkPath*, const SkPath&, SkStrokeRec*, const SkRect*) const SK_OVERRIDE; 17 virtual bool filterPath(SkPath*, const SkPath&, SkStrokeRec*, const SkRect*) const SK_OVERRIDE;
18 18
19 SK_DECLARE_UNFLATTENABLE_OBJECT()
20
21 protected: 19 protected:
22 /** New virtual, to be overridden by subclasses. 20 /** New virtual, to be overridden by subclasses.
23 This is called once from filterPath, and provides the 21 This is called once from filterPath, and provides the
24 uv parameter bounds for the path. Subsequent calls to 22 uv parameter bounds for the path. Subsequent calls to
25 next() will receive u and v values within these bounds, 23 next() will receive u and v values within these bounds,
26 and then a call to end() will signal the end of processing. 24 and then a call to end() will signal the end of processing.
27 */ 25 */
28 virtual void begin(const SkIRect& uvBounds, SkPath* dst) const; 26 virtual void begin(const SkIRect& uvBounds, SkPath* dst) const;
29 virtual void next(const SkPoint& loc, int u, int v, SkPath* dst) const; 27 virtual void next(const SkPoint& loc, int u, int v, SkPath* dst) const;
30 virtual void end(SkPath* dst) const; 28 virtual void end(SkPath* dst) const;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 93
96 virtual void next(const SkPoint&, int u, int v, SkPath*) const SK_OVERRIDE; 94 virtual void next(const SkPoint&, int u, int v, SkPath*) const SK_OVERRIDE;
97 95
98 private: 96 private:
99 SkPath fPath; 97 SkPath fPath;
100 98
101 typedef Sk2DPathEffect INHERITED; 99 typedef Sk2DPathEffect INHERITED;
102 }; 100 };
103 101
104 #endif 102 #endif
OLDNEW
« no previous file with comments | « include/core/SkFlattenable.h ('k') | src/animator/SkDrawExtraPathEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698