| 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 "GrBufferedDrawTarget.h" | 10 #include "GrBufferedDrawTarget.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 void GrTargetCommands::DrawBatch::execute(GrGpu*) { | 86 void GrTargetCommands::DrawBatch::execute(GrGpu*) { |
| 87 fBatchTarget->flushNext(fBatch->numberOfDraws()); | 87 fBatchTarget->flushNext(fBatch->numberOfDraws()); |
| 88 } | 88 } |
| 89 | 89 |
| 90 void GrTargetCommands::Clear::execute(GrGpu* gpu) { | 90 void GrTargetCommands::Clear::execute(GrGpu* gpu) { |
| 91 if (GrColor_ILLEGAL == fColor) { | 91 if (GrColor_ILLEGAL == fColor) { |
| 92 gpu->discard(this->renderTarget()); | 92 gpu->discard(this->renderTarget()); |
| 93 } else { | 93 } else { |
| 94 gpu->clear(&fRect, fColor, fCanIgnoreRect, this->renderTarget()); | 94 gpu->clear(fRect, fColor, this->renderTarget()); |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 void GrTargetCommands::ClearStencilClip::execute(GrGpu* gpu) { | 98 void GrTargetCommands::ClearStencilClip::execute(GrGpu* gpu) { |
| 99 gpu->clearStencilClip(fRect, fInsideClip, this->renderTarget()); | 99 gpu->clearStencilClip(fRect, fInsideClip, this->renderTarget()); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void GrTargetCommands::CopySurface::execute(GrGpu* gpu) { | 102 void GrTargetCommands::CopySurface::execute(GrGpu* gpu) { |
| 103 gpu->copySurface(this->dst(), this->src(), fSrcRect, fDstPoint); | 103 gpu->copySurface(this->dst(), this->src(), fSrcRect, fDstPoint); |
| 104 } | 104 } |
| 105 | 105 |
| 106 void GrTargetCommands::XferBarrier::execute(GrGpu* gpu) { | 106 void GrTargetCommands::XferBarrier::execute(GrGpu* gpu) { |
| 107 gpu->xferBarrier(fRenderTarget.get(), fBarrierType); | 107 gpu->xferBarrier(fRenderTarget.get(), fBarrierType); |
| 108 } | 108 } |
| OLD | NEW |