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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 dstPoint, | 452 dstPoint, |
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 GrPipelineOptimizations* optimizat
ions) { |
463 return GrPipeline::CreateAt(pipelineAddr, *pipelineInfo.fPipelineBuilder, | 464 return GrPipeline::CreateAt(pipelineAddr, *pipelineInfo.fPipelineBuilder, |
464 pipelineInfo.fColorPOI, | 465 pipelineInfo.fColorPOI, |
465 pipelineInfo.fCoveragePOI, | 466 pipelineInfo.fCoveragePOI, |
466 *this->caps(), | 467 *this->caps(), |
467 *pipelineInfo.fScissor, | 468 *pipelineInfo.fScissor, |
468 &pipelineInfo.fDstTexture); | 469 &pipelineInfo.fDstTexture, |
| 470 optimizations); |
469 } | 471 } |
470 | 472 |
471 /////////////////////////////////////////////////////////////////////////////// | 473 /////////////////////////////////////////////////////////////////////////////// |
472 | 474 |
473 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde
r, | 475 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde
r, |
474 GrScissorState* scissor, | 476 GrScissorState* scissor, |
475 const GrPrimitiveProcessor* primProc, | 477 const GrPrimitiveProcessor* primProc, |
476 const SkRect* devBounds, | 478 const SkRect* devBounds, |
477 GrDrawTarget* target) | 479 GrDrawTarget* target) |
478 : fPipelineBuilder(&pipelineBuilder) | 480 : fPipelineBuilder(&pipelineBuilder) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 ars, | 520 ars, |
519 scissorState, | 521 scissorState, |
520 devBounds); | 522 devBounds); |
521 } | 523 } |
522 | 524 |
523 void GrClipTarget::purgeResources() { | 525 void GrClipTarget::purgeResources() { |
524 // The clip mask manager can rebuild all its clip masks so just | 526 // The clip mask manager can rebuild all its clip masks so just |
525 // get rid of them all. | 527 // get rid of them all. |
526 fClipMaskManager->purgeResources(); | 528 fClipMaskManager->purgeResources(); |
527 }; | 529 }; |
OLD | NEW |