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