diff options
author | skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com> | 2018-04-24 16:06:32 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-24 16:30:36 +0000 |
commit | fe7e7cbcecd69eed20df2021e7b6f1a1c8858316 (patch) | |
tree | 44a587513efa19d3c6ec84be4551397848b24c53 /third_party/skcms/src | |
parent | eb43fdaaf82213cc321da7929c3188c790b37c52 (diff) |
Roll skia/third_party/skcms 011b614..4028d14 (1 commits)
https://skia.googlesource.com/skcms.git/+log/011b614..4028d14
2018-04-24 mtklein@chromium.org reduce overhead of profiling code
The AutoRoll server is located here: https://skcms-skia-roll.skia.org
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
TBR=stani@google.com
Change-Id: I3c9a75e0d51f4380e71d98f5289ab4da1168ab50
Reviewed-on: https://skia-review.googlesource.com/123397
Reviewed-by: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Commit-Queue: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'third_party/skcms/src')
-rw-r--r-- | third_party/skcms/src/Transform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/skcms/src/Transform.c b/third_party/skcms/src/Transform.c index 7238488399..b3a6b55705 100644 --- a/third_party/skcms/src/Transform.c +++ b/third_party/skcms/src/Transform.c @@ -50,8 +50,8 @@ bool g_skcms_dump_profile = false; } } - static Op profile_next_op(Op op) { - if (g_skcms_dump_profile) { + static inline Op profile_next_op(Op op) { + if (__builtin_expect(g_skcms_dump_profile, false)) { static uint64_t start = 0; static uint64_t* current = NULL; |