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

Issue 458113002: Optimize QuadF's IsCounterClockwise function (Closed)

Created:
6 years, 4 months ago by kui.zheng
Modified:
6 years, 4 months ago
Reviewers:
danakj, Ian Vollick
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Optimize QuadF's IsCounterClockwise function IsCounterClockwise is a busy function,See performance and discussion: https://groups.google.com/a/chromium.org/forum/#!topic/graphics-dev/aSvAbzcgbos This patch reduce IsCounterClockwise() from 8mul+3add+4sub to 4mul+2add+2sub, and performance doubled in real micro-bench. R=danakj@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289138

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -11 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/geometry/quad_f.cc View 1 1 chunk +15 lines, -11 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
kui.zheng
6 years, 4 months ago (2014-08-11 07:03:37 UTC) #1
danakj
On Mon, Aug 11, 2014 at 3:03 AM, <kui.zheng@arm.com> wrote: > Signed-off-by: kui zheng <kui.zheng@arm.com> ...
6 years, 4 months ago (2014-08-11 14:16:35 UTC) #2
danakj
+vollick for algebra https://codereview.chromium.org/458113002/diff/1/ui/gfx/geometry/quad_f.cc File ui/gfx/geometry/quad_f.cc (right): https://codereview.chromium.org/458113002/diff/1/ui/gfx/geometry/quad_f.cc#newcode48 ui/gfx/geometry/quad_f.cc:48: float tmp1 = p2_.y() - p4_.y(); ...
6 years, 4 months ago (2014-08-11 14:18:49 UTC) #3
Ian Vollick
Neat! LGTM. Just one minor naming nit. https://codereview.chromium.org/458113002/diff/1/ui/gfx/geometry/quad_f.cc File ui/gfx/geometry/quad_f.cc (right): https://codereview.chromium.org/458113002/diff/1/ui/gfx/geometry/quad_f.cc#newcode52 ui/gfx/geometry/quad_f.cc:52: double determinant1 ...
6 years, 4 months ago (2014-08-11 14:39:09 UTC) #4
kui.zheng
https://codereview.chromium.org/458113002/diff/1/ui/gfx/geometry/quad_f.cc File ui/gfx/geometry/quad_f.cc (right): https://codereview.chromium.org/458113002/diff/1/ui/gfx/geometry/quad_f.cc#newcode48 ui/gfx/geometry/quad_f.cc:48: float tmp1 = p2_.y() - p4_.y(); On 2014/08/11 14:18:49, ...
6 years, 4 months ago (2014-08-12 04:20:55 UTC) #5
kui.zheng
On 2014/08/11 14:16:35, danakj wrote: > On Mon, Aug 11, 2014 at 3:03 AM, <mailto:kui.zheng@arm.com> ...
6 years, 4 months ago (2014-08-12 04:21:24 UTC) #6
danakj
LGTM
6 years, 4 months ago (2014-08-12 13:56:00 UTC) #7
Ian Vollick
On 2014/08/12 13:56:00, danakj wrote: > LGTM lgtm2
6 years, 4 months ago (2014-08-12 13:58:31 UTC) #8
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 4 months ago (2014-08-12 13:58:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kui.zheng@arm.com/458113002/40001
6 years, 4 months ago (2014-08-12 14:01:09 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 00:42:26 UTC) #11
Message was sent while issue was closed.
Change committed as 289138

Powered by Google App Engine
This is Rietveld 408576698