diff options
author | 2015-10-26 13:14:36 -0700 | |
---|---|---|
committer | 2015-10-26 13:14:36 -0700 | |
commit | c70483f5ab83aaa29c0697398aeca3432f3591b6 (patch) | |
tree | d3d0bf3a1c64d47bf090b7ca4bed8a61f757c902 /tools/VisualBench/VisualBenchmarkStream.cpp | |
parent | 6db78d74fab9b285e7d4b4ae54ad278420596e8a (diff) |
Add visualbench option for device-independent fonts
BUG=skia:
Review URL: https://codereview.chromium.org/1421723004
Diffstat (limited to 'tools/VisualBench/VisualBenchmarkStream.cpp')
-rw-r--r-- | tools/VisualBench/VisualBenchmarkStream.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/VisualBench/VisualBenchmarkStream.cpp b/tools/VisualBench/VisualBenchmarkStream.cpp index 906aab2788..66e7cb0aab 100644 --- a/tools/VisualBench/VisualBenchmarkStream.cpp +++ b/tools/VisualBench/VisualBenchmarkStream.cpp @@ -57,8 +57,9 @@ private: SkPath fPath; }; -VisualBenchmarkStream::VisualBenchmarkStream() - : fBenches(BenchRegistry::Head()) +VisualBenchmarkStream::VisualBenchmarkStream(const SkSurfaceProps& surfaceProps) + : fSurfaceProps(surfaceProps) + , fBenches(BenchRegistry::Head()) , fGMs(skiagm::GMRegistry::Head()) , fSourceType(nullptr) , fBenchType(nullptr) @@ -119,9 +120,9 @@ Benchmark* VisualBenchmarkStream::next() { // TODO move this all to --config if (bench && FLAGS_cpu) { - bench = new CpuWrappedBenchmark(bench); + bench = new CpuWrappedBenchmark(fSurfaceProps, bench); } else if (bench && FLAGS_nvpr) { - bench = new NvprWrappedBenchmark(bench, 4); + bench = new NvprWrappedBenchmark(fSurfaceProps, bench, 4); } fBenchmark.reset(bench); |