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

Issue 4551097: Use floating-point fast path in SkMatrix::computeTypeMask() (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by TomH
Modified:
13 years, 5 months ago
Reviewers:
reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Benchmarking suggests that replacing some of the conversions from float to int with direct floating-point comparisons in computeTypeMask() is a significant win (up to 40%?). In practice, we see a 10-15% speedup in this function (the current most expensive Skia function) in Chrome on the FishIETank demo. The remainder of the function looks like it ought to be amenable to similar speedups, but we haven't found a rewrite that behaves well in benchmarking yet.

Patch Set 1 #

Patch Set 2 : Change constant to work in Fixed as well as Float #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/core/SkMatrix.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
TomH
13 years, 5 months ago (2011-06-06 14:56:04 UTC) #1
reed1
LGTM
13 years, 5 months ago (2011-06-06 14:57:24 UTC) #2
TomH
Committed in revision 1512.
13 years, 5 months ago (2011-06-06 15:18:40 UTC) #3
TomH
13 years, 5 months ago (2011-06-06 17:34:51 UTC) #4
On 2011/06/06 15:18:40, TomH wrote:
> Committed in revision 1512.

SK_Scalar1 only worked in Floating Point; changed to kMatrix22Elem to also work
in Fixed Point; committed in revision 1515.
Sign in to reply to this message.

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