| 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 #include "GrInOrderCommandBuilder.h" | 8 #include "GrInOrderCommandBuilder.h" |
| 9 | 9 |
| 10 #include "GrBufferedDrawTarget.h" | 10 #include "GrBufferedDrawTarget.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 GrBATCH_INFO("\tBatching with (%s, %u)\n", | 35 GrBATCH_INFO("\tBatching with (%s, %u)\n", |
| 36 previous->batch()->name(), previous->batch()->uniqueID(
)); | 36 previous->batch()->name(), previous->batch()->uniqueID(
)); |
| 37 return NULL; | 37 return NULL; |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 return GrNEW_APPEND_TO_RECORDER(*this->cmdBuffer(), DrawBatch, (batch)); | 41 return GrNEW_APPEND_TO_RECORDER(*this->cmdBuffer(), DrawBatch, (batch)); |
| 42 } | 42 } |
| 43 | 43 |
| 44 GrTargetCommands::Cmd* | 44 GrTargetCommands::Cmd* |
| 45 GrInOrderCommandBuilder::recordDrawPath(State* state, | |
| 46 const GrPathProcessor* pathProc, | |
| 47 const GrPath* path, | |
| 48 const GrStencilSettings& stencilSettings
) { | |
| 49 DrawPath* dp = GrNEW_APPEND_TO_RECORDER(*this->cmdBuffer(), DrawPath, (state
, path)); | |
| 50 dp->fStencilSettings = stencilSettings; | |
| 51 return dp; | |
| 52 } | |
| 53 | |
| 54 GrTargetCommands::Cmd* | |
| 55 GrInOrderCommandBuilder::recordDrawPaths(State* state, | 45 GrInOrderCommandBuilder::recordDrawPaths(State* state, |
| 56 GrBufferedDrawTarget* bufferedDrawTarge
t, | 46 GrBufferedDrawTarget* bufferedDrawTarge
t, |
| 57 const GrPathProcessor* pathProc, | 47 const GrPathProcessor* pathProc, |
| 58 const GrPathRange* pathRange, | 48 const GrPathRange* pathRange, |
| 59 const void* indexValues, | 49 const void* indexValues, |
| 60 GrDrawTarget::PathIndexType indexType, | 50 GrDrawTarget::PathIndexType indexType, |
| 61 const float transformValues[], | 51 const float transformValues[], |
| 62 GrDrawTarget::PathTransformType transfo
rmType, | 52 GrDrawTarget::PathTransformType transfo
rmType, |
| 63 int count, | 53 int count, |
| 64 const GrStencilSettings& stencilSetting
s, | 54 const GrStencilSettings& stencilSetting
s, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 95 |
| 106 DrawPaths* dp = GrNEW_APPEND_TO_RECORDER(*this->cmdBuffer(), DrawPaths, (sta
te, pathRange)); | 96 DrawPaths* dp = GrNEW_APPEND_TO_RECORDER(*this->cmdBuffer(), DrawPaths, (sta
te, pathRange)); |
| 107 dp->fIndices = savedIndices; | 97 dp->fIndices = savedIndices; |
| 108 dp->fIndexType = indexType; | 98 dp->fIndexType = indexType; |
| 109 dp->fTransforms = savedTransforms; | 99 dp->fTransforms = savedTransforms; |
| 110 dp->fTransformType = transformType; | 100 dp->fTransformType = transformType; |
| 111 dp->fCount = count; | 101 dp->fCount = count; |
| 112 dp->fStencilSettings = stencilSettings; | 102 dp->fStencilSettings = stencilSettings; |
| 113 return dp; | 103 return dp; |
| 114 } | 104 } |
| OLD | NEW |