From 90b200532730a25f1971e1bdeab67e86659d204a Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Wed, 8 Mar 2017 10:39:02 -0500 Subject: remove SkPictureUtils.h BUG=skia: Change-Id: Iab6e71f347fa34baf442e38ba7773058695f3e6d Reviewed-on: https://skia-review.googlesource.com/9348 Commit-Queue: Mike Reed Reviewed-by: Mike Klein Reviewed-by: Florin Malita --- bench/nanobench.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bench') 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(SkPictureUtils::ApproximateBytesUsed(pic.get())); + fSKPBytes = static_cast(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(SkPictureUtils::ApproximateBytesUsed(pic.get())); + fSKPBytes = static_cast(pic->approximateBytesUsed()); fSKPOps = pic->approximateOpCount(); return new PipingBench(name.c_str(), pic.get()); } -- cgit v1.2.3