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

Unified Diff: src/gpu/GrInOrderCommandBuilder.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/GrInOrderCommandBuilder.h ('k') | src/gpu/GrReorderCommandBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrInOrderCommandBuilder.cpp
diff --git a/src/gpu/GrInOrderCommandBuilder.cpp b/src/gpu/GrInOrderCommandBuilder.cpp
deleted file mode 100644
index bbe42a6de5fdbafb82d80e9b12ebea5a93d72428..0000000000000000000000000000000000000000
--- a/src/gpu/GrInOrderCommandBuilder.cpp
+++ /dev/null
@@ -1,29 +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 "GrInOrderCommandBuilder.h"
-
-#include "GrBufferedDrawTarget.h"
-
-#include "GrColor.h"
-#include "SkPoint.h"
-
-GrTargetCommands::Cmd* GrInOrderCommandBuilder::recordDrawBatch(GrBatch* batch,
- const GrCaps& caps) {
- GrBATCH_INFO("In-Recording (%s, %u)\n", batch->name(), batch->uniqueID());
- if (!this->cmdBuffer()->empty() &&
- Cmd::kDrawBatch_CmdType == this->cmdBuffer()->back().type()) {
- DrawBatch* previous = static_cast<DrawBatch*>(&this->cmdBuffer()->back());
- if (previous->batch()->combineIfPossible(batch, caps)) {
- GrBATCH_INFO("\tBatching with (%s, %u)\n",
- previous->batch()->name(), previous->batch()->uniqueID());
- return nullptr;
- }
- }
-
- return GrNEW_APPEND_TO_RECORDER(*this->cmdBuffer(), DrawBatch, (batch));
-}
« no previous file with comments | « src/gpu/GrInOrderCommandBuilder.h ('k') | src/gpu/GrReorderCommandBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698