OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
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 GrConvexPolyEffect_DEFINED | 8 #ifndef GrConvexPolyEffect_DEFINED |
9 #define GrConvexPolyEffect_DEFINED | 9 #define GrConvexPolyEffect_DEFINED |
10 | 10 |
11 #include "GrDrawTargetCaps.h" | 11 #include "GrDrawTargetCaps.h" |
12 #include "GrEffect.h" | 12 #include "GrEffect.h" |
13 #include "GrVertexEffect.h" | |
14 | 13 |
15 class GrGLConvexPolyEffect; | 14 class GrGLConvexPolyEffect; |
16 class SkPath; | 15 class SkPath; |
17 | 16 |
18 /** | 17 /** |
19 * An effect that renders a convex polygon. It is intended to be used as a cover
age effect. | 18 * An effect that renders a convex polygon. It is intended to be used as a cover
age effect. |
20 * Bounding geometry is rendered and the effect computes coverage based on the f
ragment's | 19 * Bounding geometry is rendered and the effect computes coverage based on the f
ragment's |
21 * position relative to the polygon. | 20 * position relative to the polygon. |
22 */ | 21 */ |
23 class GrConvexPolyEffect : public GrEffect { | 22 class GrConvexPolyEffect : public GrEffect { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 int fEdgeCount; | 91 int fEdgeCount; |
93 SkScalar fEdges[3 * kMaxEdges]; | 92 SkScalar fEdges[3 * kMaxEdges]; |
94 | 93 |
95 GR_DECLARE_EFFECT_TEST; | 94 GR_DECLARE_EFFECT_TEST; |
96 | 95 |
97 typedef GrEffect INHERITED; | 96 typedef GrEffect INHERITED; |
98 }; | 97 }; |
99 | 98 |
100 | 99 |
101 #endif | 100 #endif |
OLD | NEW |