Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(258)

Issue 6923048: Minor optimizations to SkMatrix44. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by shawnsingh
Modified:
11 years, 9 months ago
Reviewers:
TomH, jamesr1, reed1
CC:
skia-review_googlegroups.com, whunt, vollick, jamesr
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Optimized implementation of SkMatrix44::preScale preScale() does not need to do a general matrix multiply. It can do 4x less arithmetic by directly scaling the columns of the input matrix. Committed: https://code.google.com/p/skia/source/detail?r=6807

Patch Set 1 #

Total comments: 10

Patch Set 2 : prescale implementation only #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M src/utils/SkMatrix44.cpp View 1 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 13
shawnsingh
Tom had a good suggestion to add a validate() method for debug mode, since we're ...
11 years, 9 months ago (2012-12-11 09:29:51 UTC) #1
TomH
https://codereview.appspot.com/6923048/diff/1/src/utils/SkMatrix44.cpp File src/utils/SkMatrix44.cpp (right): https://codereview.appspot.com/6923048/diff/1/src/utils/SkMatrix44.cpp#newcode410 src/utils/SkMatrix44.cpp:410: this->setTypeMask(a_mask | b_mask); We need to be careful with ...
11 years, 9 months ago (2012-12-11 09:30:15 UTC) #2
shawnsingh
11 years, 9 months ago (2012-12-11 09:32:34 UTC) #3
reed1
Lets reference or add new benchs to show the speedups. https://codereview.appspot.com/6923048/diff/1/src/utils/SkMatrix44.cpp File src/utils/SkMatrix44.cpp (right): https://codereview.appspot.com/6923048/diff/1/src/utils/SkMatrix44.cpp#newcode238 ...
11 years, 9 months ago (2012-12-11 14:16:53 UTC) #4
shawnsingh
Thanks for review. =) https://codereview.appspot.com/6923048/diff/1/src/utils/SkMatrix44.cpp File src/utils/SkMatrix44.cpp (right): https://codereview.appspot.com/6923048/diff/1/src/utils/SkMatrix44.cpp#newcode238 src/utils/SkMatrix44.cpp:238: On 2012/12/11 14:16:53, reed1 wrote: ...
11 years, 9 months ago (2012-12-11 19:17:38 UTC) #5
shawnsingh
a benchmark for prescale implementation already exists. results on my fast desktop machine: current implementation: ...
11 years, 9 months ago (2012-12-13 21:59:40 UTC) #6
shawnsingh
PTAL, thanks! jamesr@ If we can land this tonight do you think it will roll ...
11 years, 9 months ago (2012-12-13 22:08:08 UTC) #7
TomH
LGTM, I'm in the UK and can test & commit in 10 hours if NC ...
11 years, 9 months ago (2012-12-13 22:12:44 UTC) #8
TomH
LGTM, I'm in the UK and can test & commit in 10 hours if NC ...
11 years, 9 months ago (2012-12-13 22:12:45 UTC) #9
shawnsingh
On 2012/12/13 22:12:45, TomH wrote: > LGTM, I'm in the UK and can test & ...
11 years, 9 months ago (2012-12-13 22:15:13 UTC) #10
reed1
lgtm
11 years, 9 months ago (2012-12-13 22:17:35 UTC) #11
jamesr1
On Thu, Dec 13, 2012 at 2:12 PM, <tomhudson@google.com> wrote: > LGTM, I'm in the ...
11 years, 9 months ago (2012-12-13 22:21:51 UTC) #12
reed1
11 years, 9 months ago (2012-12-13 22:41:17 UTC) #13
We land to do a roll tomorrow morning.

On Thu, Dec 13, 2012 at 5:21 PM, James Robinson <jamesr@google.com> wrote:
>
>
> On Thu, Dec 13, 2012 at 2:12 PM, <tomhudson@google.com> wrote:
>>
>> LGTM, I'm in the UK and can test & commit in 10 hours if NC or MTV don't
>> get a chance. We've been told to expect that anything landing in the
>> next 24 hours is guaranteed to make branch, right?
>
>
> If it rolls into chromium in that timeframe then it should definitely make
> the m25 branch (Monday night PST).
>
>>
>>
>> https://codereview.appspot.com/6923048/
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b