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

Issue 7064047: gm: remove --diffPath option and all other pixel diff functionality. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by epoger
Modified:
11 years, 9 months ago
Reviewers:
EricB
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

gm: remove --diffPath option and all other pixel diff functionality. If you want pixel diffs, you need to run skdiff instead; from now on, gm will only tell you WHETHER the images differed (not HOW they differed). Committed: https://code.google.com/p/skia/source/detail?r=7093

Patch Set 1 #

Total comments: 4

Patch Set 2 : remove_ERROR_DIMENSION_MISMATCH #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -152 lines) Patch
M gm/gmmain.cpp View 1 27 chunks +47 lines, -146 lines 9 comments Download
M gm/tests/outputs/compared-against-different-pixels/output-expected/stdout View 1 chunk +1 line, -2 lines 0 comments Download
M gm/tests/outputs/compared-against-identical-bytes/output-expected/stdout View 1 chunk +1 line, -2 lines 0 comments Download
M gm/tests/outputs/compared-against-identical-pixels/output-expected/stdout View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 5
epoger
https://codereview.appspot.com/7064047/diff/1/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.appspot.com/7064047/diff/1/gm/gmmain.cpp#newcode1 gm/gmmain.cpp:1: /* The reason for making this change: We are ...
11 years, 9 months ago (2013-01-06 14:57:06 UTC) #1
epoger
https://codereview.appspot.com/7064047/diff/1/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.appspot.com/7064047/diff/1/gm/gmmain.cpp#newcode76 gm/gmmain.cpp:76: const static ErrorBitfield ERROR_DIMENSION_MISMATCH = 0x04; On 2013/01/06 14:57:06, ...
11 years, 9 months ago (2013-01-06 21:52:15 UTC) #2
EricB
LGTM with a few questions. Maybe we should wait a bit to see if there ...
11 years, 9 months ago (2013-01-07 14:15:05 UTC) #3
epoger
https://codereview.appspot.com/7064047/diff/3001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.appspot.com/7064047/diff/3001/gm/gmmain.cpp#newcode296 gm/gmmain.cpp:296: force_all_opaque(*bp); On 2013/01/07 14:15:05, EricB wrote: > Do we ...
11 years, 9 months ago (2013-01-08 18:26:54 UTC) #4
EricB
11 years, 9 months ago (2013-01-08 18:34:54 UTC) #5
https://codereview.appspot.com/7064047/diff/3001/gm/gmmain.cpp
File gm/gmmain.cpp (right):

https://codereview.appspot.com/7064047/diff/3001/gm/gmmain.cpp#newcode296
gm/gmmain.cpp:296: force_all_opaque(*bp);
On 2013/01/08 18:26:54, epoger wrote:
> On 2013/01/07 14:15:05, EricB wrote:
> > Do we need to force opaque here?  I believe that we could avoid the above
> copies
> > if we skipped this, and it would be consistent with the way that skdiff now
> > works (https://codereview.appspot.com/7038048/).
> 
> I agree that it would be better to NOT force opaque here.  But I didn't want
to
> make that change yet, for two reasons:
> 
> 1. I wanted this CL to change only certain behavior, and not clutter that with
> possible side-effects of pixel comparison behavior
> 
> 2. My next CL will remove this section of the code anyway, replacing it with
> "get checksum" / "compare checksums".

SGTM

https://codereview.appspot.com/7064047/diff/3001/gm/gmmain.cpp#newcode521
gm/gmmain.cpp:521: renderModeDescriptor);
On 2013/01/08 18:26:54, epoger wrote:
> On 2013/01/07 14:15:05, EricB wrote:
> > Just to be clear: it's faster to directly compare the two bitmaps than to
> obtain
> > the checksum of each and compare that?
> 
> My next CL will indeed take the checksum of each and compare the checksums. 
> That will definitely be faster than reading in the comparison image from disk
> and then comparing the pixels...

Great!

https://codereview.appspot.com/7064047/diff/3001/gm/gmmain.cpp#newcode576
gm/gmmain.cpp:576: renderModeDescriptor);
On 2013/01/08 18:26:54, epoger wrote:
> On 2013/01/07 14:15:05, EricB wrote:
> > I'm now wondering whether we even want to keep the readPath parameter and do
> > reference image comparisons in GM.  It seems that GM's role is transitioning
> to
> > only generate images and assert that some configs are identical.  If all of
> our
> > comparison is taking place in skdiff, would it be simpler/cleaner to remove
> that
> > functionality from GM?  I guess that's probably a question for a future CL.
> > 
> > Note: I haven't polled to determine who, if anyone, is using  this.
> 
> I think we want to keep doing image comparisons (are the images equal or not,
> not the pixel-level diffs) within gm.  That will allow us to run many tests on
> our Android bots without incurring the overhead of writing out checksums, and
> then running another tool to read in those checksums and tell us which ones
> don't match.  (And then we can incur the overhead of pixel comparisons only
when
> there are failures.)

Right - to avoid writing images which matched to disk.  I forgot about that
case.
Sign in to reply to this message.

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