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

Issue 5502067: remove one un-needed static initializer (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by digit
Modified:
12 years, 6 months ago
Reviewers:
DerekS, caryclark1, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

remove one un-needed static initializer This patch removes the use of a static C++ object in the implementation of SkMatrix44::isIdentity(). Instead, we rely on direct comparison with a statically allocated array of SkMScalar values, which is completely equivalent. Committed: http://code.google.com/p/skia/source/detail?r=2991

Patch Set 1 #

Patch Set 2 : consistent matrix scalar constants #

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

Messages

Total messages: 7
digit
12 years, 6 months ago (2011-12-22 16:40:13 UTC) #1
caryclark1
lgtm
12 years, 6 months ago (2011-12-22 17:08:12 UTC) #2
reed1
not sure that works in fixed-point, lets test first.
12 years, 6 months ago (2011-12-22 17:25:59 UTC) #3
digit
On Thu, Dec 22, 2011 at 6:26 PM, <reed@google.com> wrote: > not sure that works ...
12 years, 6 months ago (2011-12-22 17:27:23 UTC) #4
digit
Looking at the source code, it looks like SkMscalar is always defined as either float ...
12 years, 6 months ago (2011-12-22 17:33:50 UTC) #5
reed1
doh, I thought this was SkMatrix, not SkMatrix44. You're right, there is no fixed involved. ...
12 years, 6 months ago (2011-12-22 18:01:25 UTC) #6
digit
12 years, 6 months ago (2012-01-09 21:52:38 UTC) #7
On 2011/12/22 18:01:25, reed1 wrote:
> doh, I thought this was SkMatrix, not SkMatrix44. You're right, there is no
> fixed involved.
> 
> Not sure why you use 1. and 0. instead of 1 and 0
> 
The 1. and 0. is a habit, I'll change them to 1 and 0 for the sake of
consistency.

(the point of using dotted numbers like that is to make it explicit that the
values are floating points, and not integers. This sometimes help catch
mistakes).

> lgtm
Sign in to reply to this message.

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