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" | |
13 #include "GrCaps.h" | 12 #include "GrCaps.h" |
14 #include "GrGpu.h" | 13 #include "GrGpu.h" |
15 #include "GrPath.h" | 14 #include "GrPath.h" |
16 #include "GrPipeline.h" | 15 #include "GrPipeline.h" |
17 #include "GrMemoryPool.h" | 16 #include "GrMemoryPool.h" |
18 #include "GrRectBatch.h" | |
19 #include "GrRenderTarget.h" | 17 #include "GrRenderTarget.h" |
20 #include "GrResourceProvider.h" | 18 #include "GrResourceProvider.h" |
21 #include "GrRenderTargetPriv.h" | 19 #include "GrRenderTargetPriv.h" |
22 #include "GrSurfacePriv.h" | 20 #include "GrSurfacePriv.h" |
23 #include "GrTexture.h" | 21 #include "GrTexture.h" |
24 #include "GrVertexBuffer.h" | 22 #include "GrVertexBuffer.h" |
25 | 23 |
| 24 #include "batches/GrBatch.h" |
| 25 #include "batches/GrRectBatch.h" |
| 26 |
26 #include "SkStrokeRec.h" | 27 #include "SkStrokeRec.h" |
27 | 28 |
28 //////////////////////////////////////////////////////////////////////////////// | 29 //////////////////////////////////////////////////////////////////////////////// |
29 | 30 |
30 GrDrawTarget::GrDrawTarget(GrGpu* gpu, GrResourceProvider* resourceProvider) | 31 GrDrawTarget::GrDrawTarget(GrGpu* gpu, GrResourceProvider* resourceProvider) |
31 : fGpu(SkRef(gpu)) | 32 : fGpu(SkRef(gpu)) |
32 , fCaps(SkRef(gpu->caps())) | 33 , fCaps(SkRef(gpu->caps())) |
33 , fResourceProvider(resourceProvider) | 34 , fResourceProvider(resourceProvider) |
34 , fGpuTraceMarkerCount(0) | 35 , fGpuTraceMarkerCount(0) |
35 , fFlushing(false) { | 36 , fFlushing(false) { |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 ars, | 517 ars, |
517 scissorState, | 518 scissorState, |
518 devBounds); | 519 devBounds); |
519 } | 520 } |
520 | 521 |
521 void GrClipTarget::purgeResources() { | 522 void GrClipTarget::purgeResources() { |
522 // The clip mask manager can rebuild all its clip masks so just | 523 // The clip mask manager can rebuild all its clip masks so just |
523 // get rid of them all. | 524 // get rid of them all. |
524 fClipMaskManager->purgeResources(); | 525 fClipMaskManager->purgeResources(); |
525 }; | 526 }; |
OLD | NEW |