OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrSWMaskHelper_DEFINED | 8 #ifndef GrSWMaskHelper_DEFINED |
9 #define GrSWMaskHelper_DEFINED | 9 #define GrSWMaskHelper_DEFINED |
10 | 10 |
11 #include "SkAutoPixmapStorage.h" | 11 #include "SkAutoPixmapStorage.h" |
12 #include "GrColor.h" | 12 #include "GrColor.h" |
13 #include "GrPipelineBuilder.h" | |
14 #include "SkBitmap.h" | 13 #include "SkBitmap.h" |
15 #include "SkDraw.h" | 14 #include "SkDraw.h" |
16 #include "SkMatrix.h" | 15 #include "SkMatrix.h" |
17 #include "SkRasterClip.h" | 16 #include "SkRasterClip.h" |
18 #include "SkRegion.h" | 17 #include "SkRegion.h" |
19 #include "SkTypes.h" | 18 #include "SkTypes.h" |
20 | 19 |
21 class GrClip; | 20 class GrClip; |
| 21 class GrPaint; |
22 class GrTextureProvider; | 22 class GrTextureProvider; |
| 23 class GrStyle; |
23 class GrTexture; | 24 class GrTexture; |
24 class SkPath; | 25 class SkPath; |
25 class SkStrokeRec; | 26 class SkStrokeRec; |
| 27 struct GrUserStencilSettings; |
26 | 28 |
27 /** | 29 /** |
28 * The GrSWMaskHelper helps generate clip masks using the software rendering | 30 * The GrSWMaskHelper helps generate clip masks using the software rendering |
29 * path. It is intended to be used as: | 31 * path. It is intended to be used as: |
30 * | 32 * |
31 * GrSWMaskHelper helper(context); | 33 * GrSWMaskHelper helper(context); |
32 * helper.init(...); | 34 * helper.init(...); |
33 * | 35 * |
34 * draw one or more paths/rects specifying the required boolean ops | 36 * draw one or more paths/rects specifying the required boolean ops |
35 * | 37 * |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 GrTextureProvider* fTexProvider; | 104 GrTextureProvider* fTexProvider; |
103 SkMatrix fMatrix; | 105 SkMatrix fMatrix; |
104 SkAutoPixmapStorage fPixels; | 106 SkAutoPixmapStorage fPixels; |
105 SkDraw fDraw; | 107 SkDraw fDraw; |
106 SkRasterClip fRasterClip; | 108 SkRasterClip fRasterClip; |
107 | 109 |
108 typedef SkNoncopyable INHERITED; | 110 typedef SkNoncopyable INHERITED; |
109 }; | 111 }; |
110 | 112 |
111 #endif // GrSWMaskHelper_DEFINED | 113 #endif // GrSWMaskHelper_DEFINED |
OLD | NEW |