diff options
author | mtklein <mtklein@chromium.org> | 2015-07-09 10:51:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-09 10:51:36 -0700 |
commit | 828877d7267bcb7c272a1df4e36a6a79894bf00d (patch) | |
tree | 3318a7c52ab29d10887412dc2e6733e5d99f506f /gyp | |
parent | af4edf9ccc274bef118b268145e0d1ae25072a5f (diff) |
Outline SkSpinlock::acquire().
The proportion of time spent doing useful work is well over 99% in acquire(),
so outlining it doesn't hurt speed at all, and makes it much easier to pick out
on a profile.
It'd be about 50/50 work/overhead if we outlined the extremely-cheap release().
I also tried outlining some SkRefCnt methods with similar mixed results.
BUG=skia:
No public API changes.
TBR=reed@google.com
Review URL: https://codereview.chromium.org/1212253013
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/core.gypi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gyp/core.gypi b/gyp/core.gypi index 10149d878a..389fca6d61 100644 --- a/gyp/core.gypi +++ b/gyp/core.gypi @@ -195,6 +195,7 @@ '<(skia_src_path)/core/SkShader.cpp', '<(skia_src_path)/core/SkSharedMutex.cpp', '<(skia_src_path)/core/SkSharedMutex.h', + '<(skia_src_path)/core/SkSpinlock.cpp', '<(skia_src_path)/core/SkSpriteBlitter_ARGB32.cpp', '<(skia_src_path)/core/SkSpriteBlitter_RGB16.cpp', '<(skia_src_path)/core/SkSpriteBlitter.h', |