| 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 | 
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 55                                                           (edgeType, n, edges)))
     ); | 55                                                           (edgeType, n, edges)))
     ); | 
| 56     } | 56     } | 
| 57 | 57 | 
| 58     /** | 58     /** | 
| 59      * Creates an effect that clips against the path. If the path is not a conve
     x polygon, is | 59      * Creates an effect that clips against the path. If the path is not a conve
     x polygon, is | 
| 60      * inverse filled, or has too many edges, this will return NULL. If offset i
     s non-NULL, then | 60      * inverse filled, or has too many edges, this will return NULL. If offset i
     s non-NULL, then | 
| 61      * the path is translated by the vector. | 61      * the path is translated by the vector. | 
| 62      */ | 62      */ | 
| 63     static GrEffectRef* Create(EdgeType, const SkPath&, const SkVector* offset= 
     NULL); | 63     static GrEffectRef* Create(EdgeType, const SkPath&, const SkVector* offset= 
     NULL); | 
| 64 | 64 | 
|  | 65     /** | 
|  | 66      * Creates an effect that fills inside the rect with AA edges.. | 
|  | 67      */ | 
|  | 68     static GrEffectRef* CreateForAAFillRect(const SkRect&); | 
|  | 69 | 
| 65     virtual ~GrConvexPolyEffect(); | 70     virtual ~GrConvexPolyEffect(); | 
| 66 | 71 | 
| 67     static const char* Name() { return "ConvexPoly"; } | 72     static const char* Name() { return "ConvexPoly"; } | 
| 68 | 73 | 
| 69     EdgeType getEdgeType() const { return fEdgeType; } | 74     EdgeType getEdgeType() const { return fEdgeType; } | 
| 70 | 75 | 
| 71     int getEdgeCount() const { return fEdgeCount; } | 76     int getEdgeCount() const { return fEdgeCount; } | 
| 72 | 77 | 
| 73     const SkScalar* getEdges() const { return fEdges; } | 78     const SkScalar* getEdges() const { return fEdges; } | 
| 74 | 79 | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 87     int      fEdgeCount; | 92     int      fEdgeCount; | 
| 88     SkScalar fEdges[3 * kMaxEdges]; | 93     SkScalar fEdges[3 * kMaxEdges]; | 
| 89 | 94 | 
| 90     GR_DECLARE_EFFECT_TEST; | 95     GR_DECLARE_EFFECT_TEST; | 
| 91 | 96 | 
| 92     typedef GrEffect INHERITED; | 97     typedef GrEffect INHERITED; | 
| 93 }; | 98 }; | 
| 94 | 99 | 
| 95 | 100 | 
| 96 #endif | 101 #endif | 
| OLD | NEW | 
|---|