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

Unified Diff: src/gpu/GrTargetCommands.cpp

Issue 1315563003: GrPathRangeBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix init order warning Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrTargetCommands.h ('k') | src/gpu/batches/GrDrawPathBatch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTargetCommands.cpp
diff --git a/src/gpu/GrTargetCommands.cpp b/src/gpu/GrTargetCommands.cpp
index f2e696426f2dc08d65d1dd6b96c518b3f9ebcb0d..2194e08f0a44a37dd793a4338ea409bbb854fda6 100644
--- a/src/gpu/GrTargetCommands.cpp
+++ b/src/gpu/GrTargetCommands.cpp
@@ -43,29 +43,6 @@ void GrTargetCommands::flush(GrGpu* gpu, GrResourceProvider* resourceProvider) {
fLastFlushToken = flushState.lastFlushedToken();
}
-void GrTargetCommands::DrawPath::execute(GrBatchFlushState* state) {
- if (!fState->fCompiled) {
- state->gpu()->buildProgramDesc(&fState->fDesc, *fState->fPrimitiveProcessor,
- *fState->getPipeline(), fState->fBatchTracker);
- fState->fCompiled = true;
- }
- GrPathRendering::DrawPathArgs args(fState->fPrimitiveProcessor.get(), fState->getPipeline(),
- &fState->fDesc, &fState->fBatchTracker, &fStencilSettings);
- state->gpu()->pathRendering()->drawPath(args, this->path());
-}
-
-void GrTargetCommands::DrawPaths::execute(GrBatchFlushState* state) {
- if (!fState->fCompiled) {
- state->gpu()->buildProgramDesc(&fState->fDesc, *fState->fPrimitiveProcessor,
- *fState->getPipeline(), fState->fBatchTracker);
- fState->fCompiled = true;
- }
- GrPathRendering::DrawPathArgs args(fState->fPrimitiveProcessor.get(), fState->getPipeline(),
- &fState->fDesc, &fState->fBatchTracker, &fStencilSettings);
- state->gpu()->pathRendering()->drawPaths(args, this->pathRange(), fIndices, fIndexType,
- fTransforms, fTransformType, fCount);
-}
-
void GrTargetCommands::DrawBatch::execute(GrBatchFlushState* state) {
fBatch->draw(state);
}
« no previous file with comments | « src/gpu/GrTargetCommands.h ('k') | src/gpu/batches/GrDrawPathBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698