aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-28 16:08:18 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-28 16:08:18 +0000
commit16182f74c66a92a65ff48ab8ec0448edc9e9fc1b (patch)
treef618d21d701c894b55097dfcfd8166ac554c7f19 /gyp
parent28361fad1054d59ed4e6a320c7a8b8782a1487c7 (diff)
Lazy image decoding to reduce bench_record overhead.
We want bench_record to time recording only, and are willing to accept some time spent playing back the source pictures only out of necessity. This lets us skip the JPEG and PNG decoding, which are a pretty fair chunk of time. Should mean better record numbers at the same --loops. BUG=skia: R=tomhudson@chromium.org, halcanary@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/212563009 git-svn-id: http://skia.googlecode.com/svn/trunk@13977 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r--gyp/tools.gyp11
1 files changed, 9 insertions, 2 deletions
diff --git a/gyp/tools.gyp b/gyp/tools.gyp
index 7fa7f7244f..fe84a97813 100644
--- a/gyp/tools.gyp
+++ b/gyp/tools.gyp
@@ -292,8 +292,15 @@
{
'target_name': 'bench_record',
'type': 'executable',
- 'sources': ['../tools/bench_record.cpp'],
- 'include_dirs': [ '../src/core/' ],
+ 'sources': [
+ '../tools/bench_record.cpp',
+ '../tools/LazyDecodeBitmap.cpp',
+ ],
+ 'include_dirs': [
+ '../src/core/',
+ '../src/images',
+ '../src/lazy',
+ ],
'dependencies': [
'flags.gyp:flags',
'skia_lib.gyp:skia_lib',