| 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 "GrTargetCommands.h" | 8 #include "GrTargetCommands.h" |
| 9 | 9 |
| 10 #include "GrBatchFlushState.h" | 10 #include "GrBatchFlushState.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 GrPathRendering::DrawPathArgs args(fState->fPrimitiveProcessor.get(), fState
->getPipeline(), | 69 GrPathRendering::DrawPathArgs args(fState->fPrimitiveProcessor.get(), fState
->getPipeline(), |
| 70 &fState->fDesc, &fState->fBatchTracker, &
fStencilSettings); | 70 &fState->fDesc, &fState->fBatchTracker, &
fStencilSettings); |
| 71 state->gpu()->pathRendering()->drawPaths(args, this->pathRange(), fIndices,
fIndexType, | 71 state->gpu()->pathRendering()->drawPaths(args, this->pathRange(), fIndices,
fIndexType, |
| 72 fTransforms, fTransformType, fCount
); | 72 fTransforms, fTransformType, fCount
); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void GrTargetCommands::DrawBatch::execute(GrBatchFlushState* state) { | 75 void GrTargetCommands::DrawBatch::execute(GrBatchFlushState* state) { |
| 76 fBatch->draw(state); | 76 fBatch->draw(state); |
| 77 } | 77 } |
| 78 | |
| 79 void GrTargetCommands::CopySurface::execute(GrBatchFlushState* state) { | |
| 80 state->gpu()->copySurface(this->dst(), this->src(), fSrcRect, fDstPoint); | |
| 81 } | |
| OLD | NEW |