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 #ifndef GrClipMaskManager_DEFINED | 7 #ifndef GrClipMaskManager_DEFINED |
8 #define GrClipMaskManager_DEFINED | 8 #define GrClipMaskManager_DEFINED |
9 | 9 |
10 #include "GrPipelineBuilder.h" | |
11 #include "GrReducedClip.h" | 10 #include "GrReducedClip.h" |
12 #include "SkClipStack.h" | 11 #include "SkClipStack.h" |
13 #include "SkTypes.h" | 12 #include "SkTypes.h" |
14 | 13 |
15 class GrAppliedClip; | 14 class GrAppliedClip; |
16 class GrClipStackClip; | 15 class GrClipStackClip; |
| 16 class GrContext; |
17 class GrDrawContext; | 17 class GrDrawContext; |
18 class GrFixedClip; | 18 class GrFixedClip; |
19 class GrPathRenderer; | 19 class GrPathRenderer; |
20 class GrPathRendererChain; | 20 class GrPathRendererChain; |
| 21 class GrPipelineBuilder; |
21 class GrResourceProvider; | 22 class GrResourceProvider; |
22 class GrTexture; | 23 class GrTexture; |
23 class GrTextureProvider; | 24 class GrTextureProvider; |
| 25 class GrUniqueKey; |
| 26 struct GrUserStencilSettings; |
| 27 |
24 | 28 |
25 /** | 29 /** |
26 * The clip mask creator handles the generation of the clip mask. If anti | 30 * The clip mask creator handles the generation of the clip mask. If anti |
27 * aliasing is requested it will (in the future) generate a single channel | 31 * aliasing is requested it will (in the future) generate a single channel |
28 * (8bit) mask. If no anti aliasing is requested it will generate a 1-bit | 32 * (8bit) mask. If no anti aliasing is requested it will generate a 1-bit |
29 * mask in the stencil buffer. In the non anti-aliasing case, if the clip | 33 * mask in the stencil buffer. In the non anti-aliasing case, if the clip |
30 * mask can be represented as a rectangle then scissoring is used. In all | 34 * mask can be represented as a rectangle then scissoring is used. In all |
31 * cases scissoring is used to bound the range of the clip mask. | 35 * cases scissoring is used to bound the range of the clip mask. |
32 */ | 36 */ |
33 // This has to remain a class, for now, so it can be friended (by GrDrawContext
& GrContext) | 37 // This has to remain a class, for now, so it can be friended (by GrDrawContext
& GrContext) |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 const GrPipelineBuilder&, | 92 const GrPipelineBuilder&, |
89 const GrDrawContext*, | 93 const GrDrawContext*, |
90 const SkVector& clipToMaskOffset, | 94 const SkVector& clipToMaskOffset, |
91 const GrReducedClip::ElementList& elements); | 95 const GrReducedClip::ElementList& elements); |
92 | 96 |
93 static GrTexture* CreateCachedMask(int width, int height, const GrUniqueKey&
key, | 97 static GrTexture* CreateCachedMask(int width, int height, const GrUniqueKey&
key, |
94 bool renderTarget); | 98 bool renderTarget); |
95 }; | 99 }; |
96 | 100 |
97 #endif // GrClipMaskManager_DEFINED | 101 #endif // GrClipMaskManager_DEFINED |
OLD | NEW |