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

Issue 6882043: add enums to distinguish different constructors for matrix44

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

Description

add enums to distinguish different constructors for matrix44

Patch Set 1 #

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

Messages

Total messages: 4
reed1
This CL is just for show, to get a feel for this style of constructor-specialization ...
12 years, 6 months ago (2012-12-05 14:29:01 UTC) #1
bsalomon
On 2012/12/05 14:29:01, reed1 wrote: > This CL is just for show, to get a ...
12 years, 6 months ago (2012-12-05 14:32:08 UTC) #2
reed1
I agree on both counts. I like the empty/default constructor to be uninitialized. I think ...
12 years, 6 months ago (2012-12-05 14:36:29 UTC) #3
shawnsingh
12 years, 6 months ago (2012-12-05 18:41:18 UTC) #4
I'm against re-introducing the default constructor.  I don't feel it adds any
expressive power or efficiency to how we use the matrix class.  But on the other
hand it does risk additional obscurity and error-proneness.

For chrome in particular, many of us have it baked in our minds that default
constructor will initialize to identity.  In general I would expect that its
very common for people to assume a class is correctly initialized and ready to
use after its default constructor...
Sign in to reply to this message.

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