Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/gpu/GrDrawTarget.cpp

Issue 1296483002: Split GrDrawBatch and GrVertexBatch into their own files (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add new files to git Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrDefaultPathRenderer.cpp ('k') | src/gpu/GrImmediateDrawTarget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « src/gpu/GrDefaultPathRenderer.cpp ('k') | src/gpu/GrImmediateDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698