| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 "GrDrawTarget.h" | 8 #include "GrDrawTarget.h" |
| 9 | 9 |
| 10 #include "GrAppliedClip.h" | 10 #include "GrAppliedClip.h" |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 return; | 374 return; |
| 375 } | 375 } |
| 376 } | 376 } |
| 377 args.fOpts.fColorPOI.completeCalculations( | 377 args.fOpts.fColorPOI.completeCalculations( |
| 378 sk_sp_address_as_pointer_address(pipelineBuilder.fColorFragmentProcessor
s.begin()), | 378 sk_sp_address_as_pointer_address(pipelineBuilder.fColorFragmentProcessor
s.begin()), |
| 379 pipelineBuilder.numColorFragmentProcessors()); | 379 pipelineBuilder.numColorFragmentProcessors()); |
| 380 args.fOpts.fCoveragePOI.completeCalculations( | 380 args.fOpts.fCoveragePOI.completeCalculations( |
| 381 sk_sp_address_as_pointer_address(pipelineBuilder.fCoverageFragmentProces
sors.begin()), | 381 sk_sp_address_as_pointer_address(pipelineBuilder.fCoverageFragmentProces
sors.begin()), |
| 382 pipelineBuilder.numCoverageFragmentProcessors()); | 382 pipelineBuilder.numCoverageFragmentProcessors()); |
| 383 args.fScissor = &appliedClip.scissorState(); | 383 args.fScissor = &appliedClip.scissorState(); |
| 384 args.fWindowRectsState = &appliedClip.windowRectsState(); | 384 args.fWindowRects = &appliedClip.windowRects(); |
| 385 args.fHasStencilClip = appliedClip.hasStencilClip(); | 385 args.fHasStencilClip = appliedClip.hasStencilClip(); |
| 386 if (!this->setupDstReadIfNecessary(pipelineBuilder, drawContext->accessRende
rTarget(), | 386 if (!this->setupDstReadIfNecessary(pipelineBuilder, drawContext->accessRende
rTarget(), |
| 387 clip, args.fOpts, | 387 clip, args.fOpts, |
| 388 &args.fDstTexture, batch->bounds())) { | 388 &args.fDstTexture, batch->bounds())) { |
| 389 return; | 389 return; |
| 390 } | 390 } |
| 391 | 391 |
| 392 if (!batch->installPipeline(args)) { | 392 if (!batch->installPipeline(args)) { |
| 393 return; | 393 return; |
| 394 } | 394 } |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 | 617 |
| 618 /////////////////////////////////////////////////////////////////////////////// | 618 /////////////////////////////////////////////////////////////////////////////// |
| 619 | 619 |
| 620 void GrDrawTarget::clearStencilClip(const GrFixedClip& clip, | 620 void GrDrawTarget::clearStencilClip(const GrFixedClip& clip, |
| 621 bool insideStencilMask, | 621 bool insideStencilMask, |
| 622 GrRenderTarget* rt) { | 622 GrRenderTarget* rt) { |
| 623 GrBatch* batch = new GrClearStencilClipBatch(clip, insideStencilMask, rt); | 623 GrBatch* batch = new GrClearStencilClipBatch(clip, insideStencilMask, rt); |
| 624 this->recordBatch(batch, batch->bounds()); | 624 this->recordBatch(batch, batch->bounds()); |
| 625 batch->unref(); | 625 batch->unref(); |
| 626 } | 626 } |
| OLD | NEW |