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