diff options
author | mtklein <mtklein@chromium.org> | 2014-09-16 13:36:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-16 13:36:12 -0700 |
commit | d664c21a38de98d8db210c46f7a8c4187f1534da (patch) | |
tree | a321b1770987b852dc87f2ef265675dce625ab07 /gyp | |
parent | 170f90b4576f291879371ecd6ae4bc2b1d85c64a (diff) | |
download | skia-d664c21a38de98d8db210c46f7a8c4187f1534da.tar.gz |
nanobench: lazily decode bitmaps from SKPs
This makes it considerably cheaper to run SKP recording benchmarks, without
affecting their measurements and without really affecting SKP playback
benchmarks at all.
On my machine, running out/Release/nanobench --match skp --config nondrendering
drops in run time from 6.7s to 2.5s, and the peak RAM usage drops from 129M to 50M.
I'm strongly considering making this lazy decoding the default.
BUG=skia:
R=robertphillips@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/572933006
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/bench.gyp | 3 | ||||
-rw-r--r-- | gyp/iOSShell.gyp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gyp/bench.gyp b/gyp/bench.gyp index 26849d511..08f173c8b 100644 --- a/gyp/bench.gyp +++ b/gyp/bench.gyp @@ -9,11 +9,12 @@ 'target_name': 'nanobench', 'type': 'executable', 'sources': [ - '../gm/gm.cpp', '../bench/GMBench.cpp', '../bench/RecordingBench.cpp', '../bench/SKPBench.cpp', '../bench/nanobench.cpp', + '../gm/gm.cpp', + '../tools/LazyDecodeBitmap.cpp', ], 'includes': [ 'bench.gypi', diff --git a/gyp/iOSShell.gyp b/gyp/iOSShell.gyp index ac2ed3030..20c4994be 100644 --- a/gyp/iOSShell.gyp +++ b/gyp/iOSShell.gyp @@ -23,6 +23,7 @@ '../bench/SKPBench.cpp', '../bench/nanobench.cpp', '../tests/skia_test.cpp', + '../tools/LazyDecodeBitmap.cpp', '../tools/iOSShell.cpp', '../src/views/mac/SkEventNotifier.mm', '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig', |