aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-12-23 20:54:53 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-24 13:40:41 +0000
commitbfc11853a88cda6951ae97399577fadadf2adcd5 (patch)
treeb69901d8d0513b28074c4303edad3005eaa8f58a /bench
parent3c678ffe2ca1099e37d3dbbf2984362551fba75e (diff)
remove approxbytes api from SkPicture
Bug: skia: Change-Id: I292bc9ab52fe8df3ce97a2ad4b06085b0332b19d Reviewed-on: https://skia-review.googlesource.com/89440 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'bench')
-rw-r--r--bench/nanobench.cpp6
1 files changed, 1 insertions, 5 deletions
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<double>(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<double>(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<double>(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, ...