Avoid batch preparation for SkPaint::getTextWidth on Mac
This patch stops batching SkPaint::getTextWidth() on Mac. Batching SkPaint::getTextWidth() http://crrev.com/c/1150010 has no benefits on Mac because Mac uses getTextPath() instead of getTextWidth() due to https://bugs.chromium.org/p/skia/issues/detail?id=5328 The cost to prepare batching is usually much lower than the benefit of batching, the total speed is more than 10x faster, but since Mac does not get the benefit at all, the cost of the preparation turned out to be not ignorable. http://crrev.com/c/1150010: https://pinpoint-dot-chromeperf.appspot.com/job/14d1dc0fa40000 This CL: https://pinpoint-dot-chromeperf.appspot.com/job/11a873fda40000 Bug: 868148 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: Ifbb0f6576cd58f36cd17463a550a15924f5b2209 Reviewed-on: https://chromium-review.googlesource.com/1153007 Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#578711}
Showing
Please register or sign in to comment