Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: src/gpu/GrDrawTarget.cpp

Issue 2312173002: Revert of Improve usage of window rectangles (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_drawsinreducedclip
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrFixedClip.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrFixedClip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698