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

Issue 27023004: Spin off incidental changes from DM CL (22839016). (Closed)

Created:
7 years, 2 months ago by mtklein
Modified:
7 years, 2 months ago
Reviewers:
epoger, bsalomon
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Spin off incidental changes from DM CL (22839016). BUG= Committed: http://code.google.com/p/skia/source/detail?r=11752

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -12 lines) Patch
M gm/gm_expectations.h View 7 chunks +10 lines, -10 lines 4 comments Download
M gm/gm_expectations.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/texdata.cpp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
mtklein
Realized this would be the first thing I'd ask for if I were reviewing my ...
7 years, 2 months ago (2013-10-11 17:56:43 UTC) #1
epoger
https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h File gm/gm_expectations.h (right): https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h#newcode52 gm/gm_expectations.h:52: explicit GmResultDigest(const SkBitmap &bitmap); Why make these explicit-only?
7 years, 2 months ago (2013-10-11 18:45:19 UTC) #2
mtklein
https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h File gm/gm_expectations.h (right): https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h#newcode52 gm/gm_expectations.h:52: explicit GmResultDigest(const SkBitmap &bitmap); On 2013/10/11 18:45:19, epoger wrote: ...
7 years, 2 months ago (2013-10-11 19:05:20 UTC) #3
epoger
LGTM On 2013/10/11 19:05:20, mtklein wrote: > https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h > File gm/gm_expectations.h (right): > > https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h#newcode52 ...
7 years, 2 months ago (2013-10-11 19:11:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/27023004/1
7 years, 2 months ago (2013-10-11 19:14:33 UTC) #5
bsalomon
https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h File gm/gm_expectations.h (right): https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h#newcode52 gm/gm_expectations.h:52: explicit GmResultDigest(const SkBitmap &bitmap); On 2013/10/11 19:05:20, mtklein wrote: ...
7 years, 2 months ago (2013-10-11 19:50:53 UTC) #6
commit-bot: I haz the power
List of reviewers changed. bsalomon@google.com did a drive-by without LGTM'ing!
7 years, 2 months ago (2013-10-12 02:05:19 UTC) #7
bsalomon
On 2013/10/12 02:05:19, I haz the power (commit-bot) wrote: > List of reviewers changed. mailto:bsalomon@google.com ...
7 years, 2 months ago (2013-10-14 13:05:00 UTC) #8
mtklein
On 2013/10/14 13:05:00, bsalomon wrote: > On 2013/10/12 02:05:19, I haz the power (commit-bot) wrote: ...
7 years, 2 months ago (2013-10-14 14:15:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/27023004/1
7 years, 2 months ago (2013-10-14 14:15:13 UTC) #10
commit-bot: I haz the power
Change committed as 11752
7 years, 2 months ago (2013-10-14 14:15:30 UTC) #11
mtklein
7 years, 2 months ago (2013-10-14 15:16:17 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h
File gm/gm_expectations.h (right):

https://codereview.chromium.org/27023004/diff/1/gm/gm_expectations.h#newcode52
gm/gm_expectations.h:52: explicit GmResultDigest(const SkBitmap &bitmap);
On 2013/10/11 19:50:54, bsalomon wrote:
> On 2013/10/11 19:05:20, mtklein wrote:
> > On 2013/10/11 18:45:19, epoger wrote:
> > > Why make these explicit-only?
> > Readability, though I notice Skia style guide doesn't care about this
> explicitly
> > (ahem).  Non-explicit single argument constructors can be really spooky. 
> Being
> > able to, say, pass false where you'd expect an Expectations is pretty weird.

> > It's just a habit I've gotten into any time I see a single argument
> constructor.
> >  Generally, if some code stops compiling when you add an explicit like this,
> > that code was probably too subtle to begin with.
> 
> 
> Update the style guide! We definitely prefer to use explicit and most
instances
> where we don't are violations of the undocumented preference.

Done.

Powered by Google App Engine
This is Rietveld 408576698