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

Unified Diff: src/gpu/GrImmediateDrawTarget.cpp

Issue 1315513008: Cleanup GrDrawTarget now that all paths lead to GrBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@patharray
Patch Set: remove change to SampleApp.cpp 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/GrImmediateDrawTarget.h ('k') | src/gpu/GrInOrderCommandBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrImmediateDrawTarget.cpp
diff --git a/src/gpu/GrImmediateDrawTarget.cpp b/src/gpu/GrImmediateDrawTarget.cpp
deleted file mode 100644
index 66540e32be267cbc185ebd3a844ad3cde2c2e246..0000000000000000000000000000000000000000
--- a/src/gpu/GrImmediateDrawTarget.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "GrImmediateDrawTarget.h"
-
-#include "GrGpu.h"
-#include "GrPipeline.h"
-#include "GrRenderTarget.h"
-#include "SkRect.h"
-#include "SkTypes.h"
-
-#include "batches/GrDrawBatch.h"
-#include "batches/GrVertexBatch.h"
-
-GrImmediateDrawTarget::GrImmediateDrawTarget(GrContext* context)
- : INHERITED(context)
- , fDrawID(0) {
-}
-
-GrImmediateDrawTarget::~GrImmediateDrawTarget() {
- this->reset();
-}
-
-void GrImmediateDrawTarget::onDrawBatch(GrBatch* batch) {
-
-#if 0
- // TODO: encapsulate the specialization of GrVertexBatch in GrVertexBatch so that we can
- // remove this cast. Currently all GrDrawBatches are in fact GrVertexBatch.
- GrVertexBatch* vertexBatch = static_cast<GrVertexBatch*>(batch);
- vertexBatch->prepareDraws(&fBatchTarget);
- vertexBatch->setNumberOfDraws(fBatchTarget.numberOfDraws());
-
- fBatchTarget.preFlush();
- fBatchTarget.flushNext(vertexBatch->numberOfDraws());
- fBatchTarget.postFlush();
-#endif
-}
-
-void GrImmediateDrawTarget::onReset() {}
-
-void GrImmediateDrawTarget::onFlush() {
- ++fDrawID;
-}
« no previous file with comments | « src/gpu/GrImmediateDrawTarget.h ('k') | src/gpu/GrInOrderCommandBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698