Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Issue 47403002: Avoid unnecessary sqrt calls in ComputeTransform2dScaleComponents. (Closed)

Created:
7 years, 1 month ago by aelias_OOO_until_Jul13
Modified:
7 years, 1 month ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, danakj, Tom Hudson
Visibility:
Public.

Description

Avoid unnecessary sqrt calls in ComputeTransform2dScaleComponents. This method performed 2 sqrt calls for every layer during CalcDrawProperties. In most cases, only the main diagonal has nonzero values and the sqrt() call can be optimized out. I measured a 20% win in CalcDrawPropsImplTest.TenTen on Nexus 4. NOTRY=true BUG=311472 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231339

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M cc/base/math_util.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
aelias_OOO_until_Jul13
PTAL.
7 years, 1 month ago (2013-10-27 04:38:19 UTC) #1
enne (OOO)
lgtm
7 years, 1 month ago (2013-10-27 07:19:40 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/47403002/1
7 years, 1 month ago (2013-10-28 16:29:42 UTC) #3
commit-bot: I haz the power
7 years, 1 month ago (2013-10-28 16:31:39 UTC) #4
Message was sent while issue was closed.
Change committed as 231339

Powered by Google App Engine
This is Rietveld 408576698