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

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

Issue 1288963004: ClearStencilClip in GrBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tiny Created 5 years, 4 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/GrTargetCommands.h ('k') | src/gpu/batches/GrClearBatch.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 2015 Google Inc. 2 * Copyright 2015 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 "GrTargetCommands.h" 8 #include "GrTargetCommands.h"
9 9
10 #include "GrBatchFlushState.h" 10 #include "GrBatchFlushState.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 GrPathRendering::DrawPathArgs args(fState->fPrimitiveProcessor.get(), fState ->getPipeline(), 69 GrPathRendering::DrawPathArgs args(fState->fPrimitiveProcessor.get(), fState ->getPipeline(),
70 &fState->fDesc, &fState->fBatchTracker, & fStencilSettings); 70 &fState->fDesc, &fState->fBatchTracker, & fStencilSettings);
71 state->gpu()->pathRendering()->drawPaths(args, this->pathRange(), fIndices, fIndexType, 71 state->gpu()->pathRendering()->drawPaths(args, this->pathRange(), fIndices, fIndexType,
72 fTransforms, fTransformType, fCount ); 72 fTransforms, fTransformType, fCount );
73 } 73 }
74 74
75 void GrTargetCommands::DrawBatch::execute(GrBatchFlushState* state) { 75 void GrTargetCommands::DrawBatch::execute(GrBatchFlushState* state) {
76 fBatch->draw(state); 76 fBatch->draw(state);
77 } 77 }
78 78
79 void GrTargetCommands::ClearStencilClip::execute(GrBatchFlushState* state) {
80 state->gpu()->clearStencilClip(fRect, fInsideClip, this->renderTarget());
81 }
82
83 void GrTargetCommands::CopySurface::execute(GrBatchFlushState* state) { 79 void GrTargetCommands::CopySurface::execute(GrBatchFlushState* state) {
84 state->gpu()->copySurface(this->dst(), this->src(), fSrcRect, fDstPoint); 80 state->gpu()->copySurface(this->dst(), this->src(), fSrcRect, fDstPoint);
85 } 81 }
OLDNEW
« no previous file with comments | « src/gpu/GrTargetCommands.h ('k') | src/gpu/batches/GrClearBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698