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

Side by Side Diff: src/gpu/GrTargetCommands.h

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/GrProcOptInfo.cpp ('k') | src/gpu/GrTargetCommands.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 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrTargetCommands_DEFINED 8 #ifndef GrTargetCommands_DEFINED
9 #define GrTargetCommands_DEFINED 9 #define GrTargetCommands_DEFINED
10 10
11 #include "GrBatchTarget.h" 11 #include "GrBatchTarget.h"
12 #include "GrDrawTarget.h" 12 #include "GrDrawTarget.h"
13 #include "GrGpu.h" 13 #include "GrGpu.h"
14 #include "GrPath.h" 14 #include "GrPath.h"
15 #include "GrPendingProgramElement.h" 15 #include "GrPendingProgramElement.h"
16 #include "GrRenderTarget.h" 16 #include "GrRenderTarget.h"
17 #include "GrTRecorder.h" 17 #include "GrTRecorder.h"
18 #include "SkRect.h" 18 #include "SkRect.h"
19 #include "SkTypes.h" 19 #include "SkTypes.h"
20 20
21 #include "batches/GrBatch.h" 21 #include "batches/GrDrawBatch.h"
22 22
23 class GrBufferedDrawTarget; 23 class GrBufferedDrawTarget;
24 24
25 // TODO: Convert all commands into GrBatch and remove this class. 25 // TODO: Convert all commands into GrBatch and remove this class.
26 class GrTargetCommands : ::SkNoncopyable { 26 class GrTargetCommands : ::SkNoncopyable {
27 public: 27 public:
28 GrTargetCommands(GrGpu* gpu) 28 GrTargetCommands(GrGpu* gpu)
29 : fCmdBuffer(kCmdBufferInitialSizeInBytes) 29 : fCmdBuffer(kCmdBufferInitialSizeInBytes)
30 , fBatchTarget(gpu) { 30 , fBatchTarget(gpu) {
31 } 31 }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 CmdBuffer* cmdBuffer() { return &fCmdBuffer; } 255 CmdBuffer* cmdBuffer() { return &fCmdBuffer; }
256 GrBatchTarget* batchTarget() { return &fBatchTarget; } 256 GrBatchTarget* batchTarget() { return &fBatchTarget; }
257 257
258 CmdBuffer fCmdBuffer; 258 CmdBuffer fCmdBuffer;
259 GrBatchTarget fBatchTarget; 259 GrBatchTarget fBatchTarget;
260 }; 260 };
261 261
262 #endif 262 #endif
263 263
OLDNEW
« no previous file with comments | « src/gpu/GrProcOptInfo.cpp ('k') | src/gpu/GrTargetCommands.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698