OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 #ifndef GrPathRenderer_DEFINED | 9 #ifndef GrPathRenderer_DEFINED |
10 #define GrPathRenderer_DEFINED | 10 #define GrPathRenderer_DEFINED |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 /** | 24 /** |
25 * Base class for drawing paths into a GrDrawTarget. | 25 * Base class for drawing paths into a GrDrawTarget. |
26 * | 26 * |
27 * Derived classes can use stages GrPaint::kTotalStages through GrPipelineBuild
er::kNumStages-1. | 27 * Derived classes can use stages GrPaint::kTotalStages through GrPipelineBuild
er::kNumStages-1. |
28 * The stages before GrPaint::kTotalStages are reserved for setting up the draw
(i.e., textures and | 28 * The stages before GrPaint::kTotalStages are reserved for setting up the draw
(i.e., textures and |
29 * filter masks). | 29 * filter masks). |
30 */ | 30 */ |
31 class SK_API GrPathRenderer : public SkRefCnt { | 31 class SK_API GrPathRenderer : public SkRefCnt { |
32 public: | 32 public: |
33 SK_DECLARE_INST_COUNT(GrPathRenderer) | 33 |
34 | 34 |
35 /** | 35 /** |
36 * This is called to install custom path renderers in every GrContext at cre
ate time. The | 36 * This is called to install custom path renderers in every GrContext at cre
ate time. The |
37 * default implementation in GrCreatePathRenderer_none.cpp does not add any
additional | 37 * default implementation in GrCreatePathRenderer_none.cpp does not add any
additional |
38 * renderers. Link against another implementation to install your own. The f
irst added is the | 38 * renderers. Link against another implementation to install your own. The f
irst added is the |
39 * most preferred path renderer, second is second most preferred, etc. | 39 * most preferred path renderer, second is second most preferred, etc. |
40 * | 40 * |
41 * @param context the context that will use the path renderer | 41 * @param context the context that will use the path renderer |
42 * @param prChain the chain to add path renderers to. | 42 * @param prChain the chain to add path renderers to. |
43 */ | 43 */ |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 SkRect* bounds) { | 228 SkRect* bounds) { |
229 GetPathDevBounds(path, device->width(), device->height(), matrix, bounds
); | 229 GetPathDevBounds(path, device->width(), device->height(), matrix, bounds
); |
230 } | 230 } |
231 | 231 |
232 private: | 232 private: |
233 | 233 |
234 typedef SkRefCnt INHERITED; | 234 typedef SkRefCnt INHERITED; |
235 }; | 235 }; |
236 | 236 |
237 #endif | 237 #endif |
OLD | NEW |