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

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

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/GrStrokeRectBatch.cpp ('k') | src/gpu/GrTessellatingPathRenderer.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 "GrBatch.h"
12 #include "GrBatchTarget.h" 11 #include "GrBatchTarget.h"
13 #include "GrDrawTarget.h" 12 #include "GrDrawTarget.h"
14 #include "GrGpu.h" 13 #include "GrGpu.h"
15 #include "GrPath.h" 14 #include "GrPath.h"
16 #include "GrPendingProgramElement.h" 15 #include "GrPendingProgramElement.h"
17 #include "GrRenderTarget.h" 16 #include "GrRenderTarget.h"
18 #include "GrTRecorder.h" 17 #include "GrTRecorder.h"
19 #include "SkRect.h" 18 #include "SkRect.h"
20 #include "SkTypes.h" 19 #include "SkTypes.h"
21 20
21 #include "batches/GrBatch.h"
22
22 class GrBufferedDrawTarget; 23 class GrBufferedDrawTarget;
23 24
24
25 class GrTargetCommands : ::SkNoncopyable { 25 class GrTargetCommands : ::SkNoncopyable {
26 public: 26 public:
27 GrTargetCommands(GrGpu* gpu) 27 GrTargetCommands(GrGpu* gpu)
28 : fCmdBuffer(kCmdBufferInitialSizeInBytes) 28 : fCmdBuffer(kCmdBufferInitialSizeInBytes)
29 , fBatchTarget(gpu) { 29 , fBatchTarget(gpu) {
30 } 30 }
31 31
32 class Cmd : ::SkNoncopyable { 32 class Cmd : ::SkNoncopyable {
33 public: 33 public:
34 enum CmdType { 34 enum CmdType {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 CmdBuffer* cmdBuffer() { return &fCmdBuffer; } 280 CmdBuffer* cmdBuffer() { return &fCmdBuffer; }
281 GrBatchTarget* batchTarget() { return &fBatchTarget; } 281 GrBatchTarget* batchTarget() { return &fBatchTarget; }
282 282
283 CmdBuffer fCmdBuffer; 283 CmdBuffer fCmdBuffer;
284 GrBatchTarget fBatchTarget; 284 GrBatchTarget fBatchTarget;
285 }; 285 };
286 286
287 #endif 287 #endif
288 288
OLDNEW
« no previous file with comments | « src/gpu/GrStrokeRectBatch.cpp ('k') | src/gpu/GrTessellatingPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698