| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrDrawTarget.h" | 9 #include "GrDrawTarget.h" |
| 10 | 10 |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 &clippedSrcRect, | 453 &clippedSrcRect, |
| 454 &clippedDstPoint)) { | 454 &clippedDstPoint)) { |
| 455 return; | 455 return; |
| 456 } | 456 } |
| 457 | 457 |
| 458 this->onCopySurface(dst, src, clippedSrcRect, clippedDstPoint); | 458 this->onCopySurface(dst, src, clippedSrcRect, clippedDstPoint); |
| 459 } | 459 } |
| 460 | 460 |
| 461 const GrPipeline* GrDrawTarget::setupPipeline(const PipelineInfo& pipelineInfo, | 461 const GrPipeline* GrDrawTarget::setupPipeline(const PipelineInfo& pipelineInfo, |
| 462 void* pipelineAddr) { | 462 void* pipelineAddr) { |
| 463 return SkNEW_PLACEMENT_ARGS(pipelineAddr, GrPipeline, (*pipelineInfo.fPipeli
neBuilder, | 463 return GrPipeline::CreateAt(pipelineAddr, *pipelineInfo.fPipelineBuilder, |
| 464 pipelineInfo.fColorP
OI, | 464 pipelineInfo.fColorPOI, |
| 465 pipelineInfo.fCovera
gePOI, | 465 pipelineInfo.fCoveragePOI, |
| 466 *this->caps(), | 466 *this->caps(), |
| 467 *pipelineInfo.fSciss
or, | 467 *pipelineInfo.fScissor, |
| 468 &pipelineInfo.fDstTe
xture)); | 468 &pipelineInfo.fDstTexture); |
| 469 } | 469 } |
| 470 |
| 470 /////////////////////////////////////////////////////////////////////////////// | 471 /////////////////////////////////////////////////////////////////////////////// |
| 471 | 472 |
| 472 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde
r, | 473 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde
r, |
| 473 GrScissorState* scissor, | 474 GrScissorState* scissor, |
| 474 const GrPrimitiveProcessor* primProc, | 475 const GrPrimitiveProcessor* primProc, |
| 475 const SkRect* devBounds, | 476 const SkRect* devBounds, |
| 476 GrDrawTarget* target) | 477 GrDrawTarget* target) |
| 477 : fPipelineBuilder(&pipelineBuilder) | 478 : fPipelineBuilder(&pipelineBuilder) |
| 478 , fScissor(scissor) { | 479 , fScissor(scissor) { |
| 479 fColorPOI = fPipelineBuilder->colorProcInfo(primProc); | 480 fColorPOI = fPipelineBuilder->colorProcInfo(primProc); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 ars, | 518 ars, |
| 518 scissorState, | 519 scissorState, |
| 519 devBounds); | 520 devBounds); |
| 520 } | 521 } |
| 521 | 522 |
| 522 void GrClipTarget::purgeResources() { | 523 void GrClipTarget::purgeResources() { |
| 523 // The clip mask manager can rebuild all its clip masks so just | 524 // The clip mask manager can rebuild all its clip masks so just |
| 524 // get rid of them all. | 525 // get rid of them all. |
| 525 fClipMaskManager->purgeResources(); | 526 fClipMaskManager->purgeResources(); |
| 526 }; | 527 }; |
| OLD | NEW |