OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 GrReducedClip_DEFINED |
| 10 #define GrReducedClip_DEFINED |
| 11 |
9 #include "SkClipStack.h" | 12 #include "SkClipStack.h" |
10 #include "SkTLList.h" | 13 #include "SkTLList.h" |
11 | 14 |
12 namespace GrReducedClip { | 15 namespace GrReducedClip { |
13 | 16 |
14 typedef SkTLList<SkClipStack::Element> ElementList; | 17 typedef SkTLList<SkClipStack::Element> ElementList; |
15 | 18 |
16 enum InitialState { | 19 enum InitialState { |
17 kAllIn_InitialState, | 20 kAllIn_InitialState, |
18 kAllOut_InitialState, | 21 kAllOut_InitialState, |
(...skipping 15 matching lines...) Expand all Loading... |
34 */ | 37 */ |
35 SK_API void ReduceClipStack(const SkClipStack& stack, | 38 SK_API void ReduceClipStack(const SkClipStack& stack, |
36 const SkIRect& queryBounds, | 39 const SkIRect& queryBounds, |
37 ElementList* result, | 40 ElementList* result, |
38 int32_t* resultGenID, | 41 int32_t* resultGenID, |
39 InitialState* initialState, | 42 InitialState* initialState, |
40 SkIRect* tighterBounds = NULL, | 43 SkIRect* tighterBounds = NULL, |
41 bool* requiresAA = NULL); | 44 bool* requiresAA = NULL); |
42 | 45 |
43 } // namespace GrReducedClip | 46 } // namespace GrReducedClip |
| 47 |
| 48 #endif |
OLD | NEW |