From bfc11853a88cda6951ae97399577fadadf2adcd5 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Sat, 23 Dec 2017 20:54:53 -0500 Subject: remove approxbytes api from SkPicture Bug: skia: Change-Id: I292bc9ab52fe8df3ce97a2ad4b06085b0332b19d Reviewed-on: https://skia-review.googlesource.com/89440 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- bench/nanobench.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bench') diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index a50138a624..8cd8e8171f 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -738,7 +738,6 @@ public: SkString name = SkOSPath::Basename(path.c_str()); fSourceType = "skp"; fBenchType = "recording"; - fSKPBytes = static_cast(pic->approximateBytesUsed()); fSKPOps = pic->approximateOpCount(); return new RecordingBench(name.c_str(), pic.get(), FLAGS_bbh, FLAGS_lite); } @@ -753,7 +752,6 @@ public: SkString name = SkOSPath::Basename(path.c_str()); fSourceType = "skp"; fBenchType = "piping"; - fSKPBytes = static_cast(pic->approximateBytesUsed()); fSKPOps = pic->approximateOpCount(); return new PipingBench(name.c_str(), pic.get()); } @@ -768,7 +766,6 @@ public: SkString name = SkOSPath::Basename(path.c_str()); fSourceType = "skp"; fBenchType = "deserial"; - fSKPBytes = static_cast(data->size()); fSKPOps = 0; return new DeserializePictureBench(name.c_str(), std::move(data)); } @@ -1062,7 +1059,6 @@ public: } } if (0 == strcmp(fBenchType, "recording")) { - log->metric("bytes", fSKPBytes); log->metric("ops", fSKPOps); } } @@ -1093,7 +1089,7 @@ private: SkScalar fZoomMax; double fZoomPeriodMs; - double fSKPBytes, fSKPOps; + double fSKPOps; const char* fSourceType; // What we're benching: bench, GM, SKP, ... const char* fBenchType; // How we bench it: micro, recording, playback, ... -- cgit v1.2.3