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

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

Issue 1277233002: Make folder for batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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/GrDrawContext.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 "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
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 };
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrImmediateDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698