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

Issue 11442020: optimize computing bounds by calling SkMatrix44::map2() (Closed)

Created:
8 years ago by reed1
Modified:
8 years ago
Reviewers:
danakj, jamesr, shawnsingh
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

optimize computing bounds by calling SkMatrix44::map2() Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171820

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

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

Messages

Total messages: 22 (0 generated)
reed1
8 years ago (2012-12-05 23:28:01 UTC) #1
danakj
+shawn
8 years ago (2012-12-05 23:34:46 UTC) #2
jamesr
What rev of skia does this depend on? I don't have it in my checkout.
8 years ago (2012-12-06 00:19:16 UTC) #3
jamesr
I get weird graphical artifacts on the tab switcher with this patch applied. Mike - ...
8 years ago (2012-12-06 00:31:16 UTC) #4
reed1
On 2012/12/06 00:19:16, jamesr wrote: > What rev of skia does this depend on? I ...
8 years ago (2012-12-06 00:46:41 UTC) #5
reed1
On 2012/12/06 00:31:16, jamesr wrote: > I get weird graphical artifacts on the tab switcher ...
8 years ago (2012-12-06 00:47:15 UTC) #6
reed1
On 2012/12/06 00:47:15, reed1 wrote: > On 2012/12/06 00:31:16, jamesr wrote: > > I get ...
8 years ago (2012-12-06 01:03:59 UTC) #7
danakj
On Wed, Dec 5, 2012 at 8:03 PM, <reed@google.com> wrote: > On 2012/12/06 00:47:15, reed1 ...
8 years ago (2012-12-06 01:07:26 UTC) #8
shawnsingh
Looks great, except i'm not seeing where in SkMatrix44.cpp that the kPerspective mask bit is ...
8 years ago (2012-12-06 03:00:55 UTC) #9
reed1
kPerspective_Mask is set in computeTypeMask() However, I have removed that check for now. I don't ...
8 years ago (2012-12-06 05:50:20 UTC) #10
reed1
ptal the matrix44 optimizations (+ map2() api) have landed in chrome.
8 years ago (2012-12-06 16:41:46 UTC) #11
shawnsingh
LGTM =)
8 years ago (2012-12-07 04:26:50 UTC) #12
jamesr
https://codereview.chromium.org/11442020/diff/1003/cc/math_util.cc File cc/math_util.cc (right): https://codereview.chromium.org/11442020/diff/1003/cc/math_util.cc#newcode124 cc/math_util.cc:124: return computeEnclosingClippedRect(*(const HomogeneousCoordinate*)&result[0], chromium code never uses c-style casts. ...
8 years ago (2012-12-07 04:30:39 UTC) #13
reed1
changed c-cast to reinterpret_cast<>
8 years ago (2012-12-07 15:46:13 UTC) #14
danakj
https://codereview.chromium.org/11442020/diff/11002/cc/math_util.cc File cc/math_util.cc (right): https://codereview.chromium.org/11442020/diff/11002/cc/math_util.cc#newcode124 cc/math_util.cc:124: return computeEnclosingClippedRect(*reinterpret_cast<HomogeneousCoordinate*>(&result[0]), Can we do this without casting please?
8 years ago (2012-12-07 16:31:55 UTC) #15
tomhudson
On 2012/12/07 16:31:55, danakj wrote: > https://codereview.chromium.org/11442020/diff/11002/cc/math_util.cc > File cc/math_util.cc (right): > > https://codereview.chromium.org/11442020/diff/11002/cc/math_util.cc#newcode124 > ...
8 years ago (2012-12-07 16:36:37 UTC) #16
danakj
On 2012/12/07 16:36:37, tomhudson wrote: > On 2012/12/07 16:31:55, danakj wrote: > > https://codereview.chromium.org/11442020/diff/11002/cc/math_util.cc > ...
8 years ago (2012-12-07 16:41:46 UTC) #17
reed1
I will try the assignment. The entire motivation for the CL was performance, specially to ...
8 years ago (2012-12-07 16:43:42 UTC) #18
reed1
switch to local HomogeneousPoints on the stack.
8 years ago (2012-12-07 18:08:13 UTC) #19
danakj
Thanks. LGTM with nits and one question. https://codereview.chromium.org/11442020/diff/11003/cc/math_util.cc File cc/math_util.cc (right): https://codereview.chromium.org/11442020/diff/11003/cc/math_util.cc#newcode116 cc/math_util.cc:116: quad[0] = ...
8 years ago (2012-12-07 18:26:34 UTC) #20
reed1
https://codereview.chromium.org/11442020/diff/11003/cc/math_util.cc File cc/math_util.cc (right): https://codereview.chromium.org/11442020/diff/11003/cc/math_util.cc#newcode116 cc/math_util.cc:116: quad[0] = srcRect.x(); quad[1] = srcRect.y(); On 2012/12/07 18:26:34, ...
8 years ago (2012-12-07 19:12:26 UTC) #21
jamesr
8 years ago (2012-12-07 19:14:04 UTC) #22
lgtm2!

Powered by Google App Engine
This is Rietveld 408576698