OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 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 "GrDrawTarget.h" | 9 #include "GrDrawTarget.h" |
10 | 10 |
11 #include "GrAARectRenderer.h" | 11 #include "GrAARectRenderer.h" |
12 #include "GrBatch.h" | 12 #include "GrBatch.h" |
13 #include "GrCaps.h" | 13 #include "GrCaps.h" |
14 #include "GrGpu.h" | 14 #include "GrGpu.h" |
15 #include "GrPath.h" | 15 #include "GrPath.h" |
16 #include "GrPipeline.h" | 16 #include "GrPipeline.h" |
17 #include "GrMemoryPool.h" | 17 #include "GrMemoryPool.h" |
18 #include "GrRectBatch.h" | 18 #include "GrRectBatch.h" |
19 #include "GrRenderTarget.h" | 19 #include "GrRenderTarget.h" |
20 #include "GrResourceProvider.h" | 20 #include "GrResourceProvider.h" |
21 #include "GrRenderTargetPriv.h" | 21 #include "GrRenderTargetPriv.h" |
22 #include "GrSurfacePriv.h" | 22 #include "GrSurfacePriv.h" |
23 #include "GrTemplates.h" | |
24 #include "GrTexture.h" | 23 #include "GrTexture.h" |
25 #include "GrVertexBuffer.h" | 24 #include "GrVertexBuffer.h" |
26 | 25 |
27 #include "SkStrokeRec.h" | 26 #include "SkStrokeRec.h" |
28 | 27 |
29 //////////////////////////////////////////////////////////////////////////////// | 28 //////////////////////////////////////////////////////////////////////////////// |
30 | 29 |
31 GrDrawTarget::GrDrawTarget(GrGpu* gpu, GrResourceProvider* resourceProvider) | 30 GrDrawTarget::GrDrawTarget(GrGpu* gpu, GrResourceProvider* resourceProvider) |
32 : fGpu(SkRef(gpu)) | 31 : fGpu(SkRef(gpu)) |
33 , fCaps(SkRef(gpu->caps())) | 32 , fCaps(SkRef(gpu->caps())) |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 ars, | 504 ars, |
506 scissorState, | 505 scissorState, |
507 devBounds); | 506 devBounds); |
508 } | 507 } |
509 | 508 |
510 void GrClipTarget::purgeResources() { | 509 void GrClipTarget::purgeResources() { |
511 // The clip mask manager can rebuild all its clip masks so just | 510 // The clip mask manager can rebuild all its clip masks so just |
512 // get rid of them all. | 511 // get rid of them all. |
513 fClipMaskManager->purgeResources(); | 512 fClipMaskManager->purgeResources(); |
514 }; | 513 }; |
OLD | NEW |