| 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 void GrDrawTarget::setupPipeline(const PipelineInfo& pipelineInfo, void* pipelin
eAddr) { |
| 449 GrPipeline* pipeline) { | 449 SkNEW_PLACEMENT_ARGS(pipelineAddr, GrPipeline, (*pipelineInfo.fPipelineBuild
er, |
| 450 SkNEW_PLACEMENT_ARGS(pipeline, GrPipeline, (*pipelineInfo.fPipelineBuilder, | 450 pipelineInfo.fColorPOI, |
| 451 pipelineInfo.fColorPOI, | 451 pipelineInfo.fCoveragePOI, |
| 452 pipelineInfo.fCoveragePOI, | 452 *this->caps(), |
| 453 *this->caps(), | 453 *pipelineInfo.fScissor, |
| 454 *pipelineInfo.fScissor, | 454 &pipelineInfo.fDstTexture))
; |
| 455 &pipelineInfo.fDstTexture)); | |
| 456 } | 455 } |
| 457 /////////////////////////////////////////////////////////////////////////////// | 456 /////////////////////////////////////////////////////////////////////////////// |
| 458 | 457 |
| 459 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde
r, | 458 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde
r, |
| 460 GrScissorState* scissor, | 459 GrScissorState* scissor, |
| 461 const GrPrimitiveProcessor* primProc, | 460 const GrPrimitiveProcessor* primProc, |
| 462 const SkRect* devBounds, | 461 const SkRect* devBounds, |
| 463 GrDrawTarget* target) | 462 GrDrawTarget* target) |
| 464 : fPipelineBuilder(&pipelineBuilder) | 463 : fPipelineBuilder(&pipelineBuilder) |
| 465 , fScissor(scissor) { | 464 , fScissor(scissor) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 ars, | 503 ars, |
| 505 scissorState, | 504 scissorState, |
| 506 devBounds); | 505 devBounds); |
| 507 } | 506 } |
| 508 | 507 |
| 509 void GrClipTarget::purgeResources() { | 508 void GrClipTarget::purgeResources() { |
| 510 // The clip mask manager can rebuild all its clip masks so just | 509 // The clip mask manager can rebuild all its clip masks so just |
| 511 // get rid of them all. | 510 // get rid of them all. |
| 512 fClipMaskManager->purgeResources(); | 511 fClipMaskManager->purgeResources(); |
| 513 }; | 512 }; |
| OLD | NEW |