| 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 "GrAuditTrail.h" | 10 #include "GrAuditTrail.h" |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 return; | 372 return; |
| 373 } | 373 } |
| 374 } | 374 } |
| 375 args.fOpts.fColorPOI.completeCalculations( | 375 args.fOpts.fColorPOI.completeCalculations( |
| 376 sk_sp_address_as_pointer_address(pipelineBuilder.fColorFragmentProcessor
s.begin()), | 376 sk_sp_address_as_pointer_address(pipelineBuilder.fColorFragmentProcessor
s.begin()), |
| 377 pipelineBuilder.numColorFragmentProcessors()); | 377 pipelineBuilder.numColorFragmentProcessors()); |
| 378 args.fOpts.fCoveragePOI.completeCalculations( | 378 args.fOpts.fCoveragePOI.completeCalculations( |
| 379 sk_sp_address_as_pointer_address(pipelineBuilder.fCoverageFragmentProces
sors.begin()), | 379 sk_sp_address_as_pointer_address(pipelineBuilder.fCoverageFragmentProces
sors.begin()), |
| 380 pipelineBuilder.numCoverageFragmentProcessors()); | 380 pipelineBuilder.numCoverageFragmentProcessors()); |
| 381 args.fScissor = &appliedClip.scissorState(); | 381 args.fScissor = &appliedClip.scissorState(); |
| 382 args.fWindows = &appliedClip.windows(); |
| 382 args.fHasStencilClip = appliedClip.hasStencilClip(); | 383 args.fHasStencilClip = appliedClip.hasStencilClip(); |
| 383 if (!this->setupDstReadIfNecessary(pipelineBuilder, drawContext->accessRende
rTarget(), | 384 if (!this->setupDstReadIfNecessary(pipelineBuilder, drawContext->accessRende
rTarget(), |
| 384 clip, args.fOpts, | 385 clip, args.fOpts, |
| 385 &args.fDstTexture, batch->bounds())) { | 386 &args.fDstTexture, batch->bounds())) { |
| 386 return; | 387 return; |
| 387 } | 388 } |
| 388 | 389 |
| 389 if (!batch->installPipeline(args)) { | 390 if (!batch->installPipeline(args)) { |
| 390 return; | 391 return; |
| 391 } | 392 } |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 } | 612 } |
| 612 } | 613 } |
| 613 | 614 |
| 614 /////////////////////////////////////////////////////////////////////////////// | 615 /////////////////////////////////////////////////////////////////////////////// |
| 615 | 616 |
| 616 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend
erTarget* rt) { | 617 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend
erTarget* rt) { |
| 617 GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt); | 618 GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt); |
| 618 this->recordBatch(batch, batch->bounds()); | 619 this->recordBatch(batch, batch->bounds()); |
| 619 batch->unref(); | 620 batch->unref(); |
| 620 } | 621 } |
| OLD | NEW |