aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/nanobench.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-03-08 10:39:02 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-08 19:44:43 +0000
commit90b200532730a25f1971e1bdeab67e86659d204a (patch)
tree08d3fb0c570aab372f241b922a9e0865be98f159 /bench/nanobench.cpp
parentdcd2a908f424f080170a7d415ea0280d186e5d7f (diff)
remove SkPictureUtils.h
BUG=skia: Change-Id: Iab6e71f347fa34baf442e38ba7773058695f3e6d Reviewed-on: https://skia-review.googlesource.com/9348 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org> Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'bench/nanobench.cpp')
-rw-r--r--bench/nanobench.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index f73ae464cc..5e13a29671 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -40,7 +40,6 @@
#include "SkOSFile.h"
#include "SkOSPath.h"
#include "SkPictureRecorder.h"
-#include "SkPictureUtils.h"
#include "SkSVGDOM.h"
#include "SkScan.h"
#include "SkString.h"
@@ -714,7 +713,7 @@ public:
SkString name = SkOSPath::Basename(path.c_str());
fSourceType = "skp";
fBenchType = "recording";
- fSKPBytes = static_cast<double>(SkPictureUtils::ApproximateBytesUsed(pic.get()));
+ fSKPBytes = static_cast<double>(pic->approximateBytesUsed());
fSKPOps = pic->approximateOpCount();
return new RecordingBench(name.c_str(), pic.get(), FLAGS_bbh, FLAGS_lite);
}
@@ -729,7 +728,7 @@ public:
SkString name = SkOSPath::Basename(path.c_str());
fSourceType = "skp";
fBenchType = "piping";
- fSKPBytes = static_cast<double>(SkPictureUtils::ApproximateBytesUsed(pic.get()));
+ fSKPBytes = static_cast<double>(pic->approximateBytesUsed());
fSKPOps = pic->approximateOpCount();
return new PipingBench(name.c_str(), pic.get());
}