| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 srcRect, | 438 srcRect, |
| 439 dstPoint, | 439 dstPoint, |
| 440 &clippedSrcRect, | 440 &clippedSrcRect, |
| 441 &clippedDstPoint)) { | 441 &clippedDstPoint)) { |
| 442 return; | 442 return; |
| 443 } | 443 } |
| 444 | 444 |
| 445 this->onCopySurface(dst, src, clippedSrcRect, clippedDstPoint); | 445 this->onCopySurface(dst, src, clippedSrcRect, clippedDstPoint); |
| 446 } | 446 } |
| 447 | 447 |
| 448 void GrDrawTarget::setupPipeline(const PipelineInfo& pipelineInfo, | 448 const GrPipeline* GrDrawTarget::setupPipeline(const PipelineInfo& pipelineInfo, |
| 449 GrPipeline* pipeline) { | 449 void* pipelineAddr) { |
| 450 SkNEW_PLACEMENT_ARGS(pipeline, GrPipeline, (*pipelineInfo.fPipelineBuilder, | 450 return SkNEW_PLACEMENT_ARGS(pipelineAddr, GrPipeline, (*pipelineInfo.fPipeli
neBuilder, |
| 451 pipelineInfo.fColorPOI, | 451 pipelineInfo.fColorP
OI, |
| 452 pipelineInfo.fCoveragePOI, | 452 pipelineInfo.fCovera
gePOI, |
| 453 *this->caps(), | 453 *this->caps(), |
| 454 *pipelineInfo.fScissor, | 454 *pipelineInfo.fSciss
or, |
| 455 &pipelineInfo.fDstTexture)); | 455 &pipelineInfo.fDstTe
xture)); |
| 456 } | 456 } |
| 457 /////////////////////////////////////////////////////////////////////////////// | 457 /////////////////////////////////////////////////////////////////////////////// |
| 458 | 458 |
| 459 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde
r, | 459 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde
r, |
| 460 GrScissorState* scissor, | 460 GrScissorState* scissor, |
| 461 const GrPrimitiveProcessor* primProc, | 461 const GrPrimitiveProcessor* primProc, |
| 462 const SkRect* devBounds, | 462 const SkRect* devBounds, |
| 463 GrDrawTarget* target) | 463 GrDrawTarget* target) |
| 464 : fPipelineBuilder(&pipelineBuilder) | 464 : fPipelineBuilder(&pipelineBuilder) |
| 465 , fScissor(scissor) { | 465 , fScissor(scissor) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 ars, | 504 ars, |
| 505 scissorState, | 505 scissorState, |
| 506 devBounds); | 506 devBounds); |
| 507 } | 507 } |
| 508 | 508 |
| 509 void GrClipTarget::purgeResources() { | 509 void GrClipTarget::purgeResources() { |
| 510 // The clip mask manager can rebuild all its clip masks so just | 510 // The clip mask manager can rebuild all its clip masks so just |
| 511 // get rid of them all. | 511 // get rid of them all. |
| 512 fClipMaskManager->purgeResources(); | 512 fClipMaskManager->purgeResources(); |
| 513 }; | 513 }; |
| OLD | NEW |