aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-07-21 16:15:19 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-24 13:47:49 +0000
commitb7506c3ecf8c347778c85e9085e50f08e290086a (patch)
treeeba837f6410b0766dd5856a30722e23f122527b1
parente44ef10ebbc7f64b627a9ac3a562bd87b3001b0c (diff)
Remove unused function GrDrawOp::DumpPipelineInfo
This was used by subclasses of GrLegacyMeshDrawOp. Change-Id: I421589dfdc253bdf43aeac9fa9af0647c70811dd Reviewed-on: https://skia-review.googlesource.com/25804 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
-rw-r--r--gn/gpu.gni1
-rw-r--r--src/gpu/ops/GrDrawOp.cpp41
-rw-r--r--src/gpu/ops/GrDrawOp.h2
3 files changed, 0 insertions, 44 deletions
diff --git a/gn/gpu.gni b/gn/gpu.gni
index 784ac8fb08..b058b0307c 100644
--- a/gn/gpu.gni
+++ b/gn/gpu.gni
@@ -252,7 +252,6 @@ skia_gpu_sources = [
"$_src/gpu/ops/GrDiscardOp.h",
"$_src/gpu/ops/GrDrawAtlasOp.cpp",
"$_src/gpu/ops/GrDrawAtlasOp.h",
- "$_src/gpu/ops/GrDrawOp.cpp",
"$_src/gpu/ops/GrDrawOp.h",
"$_src/gpu/ops/GrDrawPathOp.cpp",
"$_src/gpu/ops/GrDrawPathOp.h",
diff --git a/src/gpu/ops/GrDrawOp.cpp b/src/gpu/ops/GrDrawOp.cpp
deleted file mode 100644
index 4bbb80e397..0000000000
--- a/src/gpu/ops/GrDrawOp.cpp
+++ /dev/null
@@ -1,41 +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 "GrDrawOp.h"
-
-#include "GrRenderTarget.h"
-
-SkString GrDrawOp::DumpPipelineInfo(const GrPipeline& pipeline) {
- SkString string;
- string.appendf("RT: %d\n", pipeline.getRenderTarget()->uniqueID().asUInt());
- string.append("ColorStages:\n");
- for (int i = 0; i < pipeline.numColorFragmentProcessors(); i++) {
- string.appendf("\t\t%s\n\t\t%s\n",
- pipeline.getColorFragmentProcessor(i).name(),
- pipeline.getColorFragmentProcessor(i).dumpInfo().c_str());
- }
- string.append("CoverageStages:\n");
- for (int i = 0; i < pipeline.numCoverageFragmentProcessors(); i++) {
- string.appendf("\t\t%s\n\t\t%s\n",
- pipeline.getCoverageFragmentProcessor(i).name(),
- pipeline.getCoverageFragmentProcessor(i).dumpInfo().c_str());
- }
- string.appendf("XP: %s\n", pipeline.getXferProcessor().name());
-
- bool scissorEnabled = pipeline.getScissorState().enabled();
- string.appendf("Scissor: ");
- if (scissorEnabled) {
- string.appendf("[L: %d, T: %d, R: %d, B: %d]\n",
- pipeline.getScissorState().rect().fLeft,
- pipeline.getScissorState().rect().fTop,
- pipeline.getScissorState().rect().fRight,
- pipeline.getScissorState().rect().fBottom);
- } else {
- string.appendf("<disabled>\n");
- }
- return string;
-}
diff --git a/src/gpu/ops/GrDrawOp.h b/src/gpu/ops/GrDrawOp.h
index 36f4da4fc6..58ef71ac90 100644
--- a/src/gpu/ops/GrDrawOp.h
+++ b/src/gpu/ops/GrDrawOp.h
@@ -83,8 +83,6 @@ public:
virtual RequiresDstTexture finalize(const GrCaps&, const GrAppliedClip*) = 0;
protected:
- static SkString DumpPipelineInfo(const GrPipeline& pipeline);
-
struct QueuedUpload {
QueuedUpload(DeferredUploadFn&& upload, GrDrawOpUploadToken token)
: fUpload(std::move(upload))