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