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 #include "GrClipMaskManager.h" | 9 #include "GrClipMaskManager.h" |
10 #include "effects/GrTextureDomainEffect.h" | 10 #include "GrAAConvexPathRenderer.h" |
| 11 #include "GrAAHairLinePathRenderer.h" |
| 12 #include "GrDrawTargetCaps.h" |
11 #include "GrGpu.h" | 13 #include "GrGpu.h" |
| 14 #include "GrPaint.h" |
| 15 #include "GrPathRenderer.h" |
12 #include "GrRenderTarget.h" | 16 #include "GrRenderTarget.h" |
13 #include "GrStencilBuffer.h" | 17 #include "GrStencilBuffer.h" |
14 #include "GrPathRenderer.h" | 18 #include "GrSWMaskHelper.h" |
15 #include "GrPaint.h" | 19 #include "effects/GrTextureDomainEffect.h" |
16 #include "SkRasterClip.h" | 20 #include "SkRasterClip.h" |
17 #include "SkStrokeRec.h" | 21 #include "SkStrokeRec.h" |
18 #include "GrAAConvexPathRenderer.h" | |
19 #include "GrAAHairLinePathRenderer.h" | |
20 #include "GrSWMaskHelper.h" | |
21 | |
22 #include "SkTLazy.h" | 22 #include "SkTLazy.h" |
23 | 23 |
24 #define GR_AA_CLIP 1 | 24 #define GR_AA_CLIP 1 |
25 | 25 |
26 typedef SkClipStack::Element Element; | 26 typedef SkClipStack::Element Element; |
27 | 27 |
28 using namespace GrReducedClip; | 28 using namespace GrReducedClip; |
29 | 29 |
30 //////////////////////////////////////////////////////////////////////////////// | 30 //////////////////////////////////////////////////////////////////////////////// |
31 namespace { | 31 namespace { |
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 | 999 |
1000 //////////////////////////////////////////////////////////////////////////////// | 1000 //////////////////////////////////////////////////////////////////////////////// |
1001 void GrClipMaskManager::releaseResources() { | 1001 void GrClipMaskManager::releaseResources() { |
1002 fAACache.releaseResources(); | 1002 fAACache.releaseResources(); |
1003 } | 1003 } |
1004 | 1004 |
1005 void GrClipMaskManager::setGpu(GrGpu* gpu) { | 1005 void GrClipMaskManager::setGpu(GrGpu* gpu) { |
1006 fGpu = gpu; | 1006 fGpu = gpu; |
1007 fAACache.setContext(gpu->getContext()); | 1007 fAACache.setContext(gpu->getContext()); |
1008 } | 1008 } |
OLD | NEW |