OLD | NEW |
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 Loading... |
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 |
OLD | NEW |