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

Issue 7400044: Fix ignored errors in GM when no reference images are provided (Closed)

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

Description

Fix ignored errors in GM when no reference images are provided Committed: https://code.google.com/p/skia/source/detail?r=7813

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M gm/gmmain.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9
EricB
I *think* that this is the desired behavior. An ERROR_READING_REFERENCE_IMAGE should still be an error ...
11 years, 6 months ago (2013-02-20 21:00:16 UTC) #1
EricB
Patch set 2 gives an alternative: If there are no reference images, the test is ...
11 years, 6 months ago (2013-02-20 21:47:37 UTC) #2
epoger
This CL addresses http://code.google.com/p/skia/issues/detail?id=1124 ('Hole in SkPicture testing') Reviewing now...
11 years, 6 months ago (2013-02-21 17:13:09 UTC) #3
epoger
https://codereview.appspot.com/7400044/diff/3001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.appspot.com/7400044/diff/3001/gm/gmmain.cpp#newcode1650 gm/gmmain.cpp:1650: if (!gmmain.fExpectationsSource.get() && I don't think this is quite ...
11 years, 6 months ago (2013-02-21 17:29:01 UTC) #4
EricB
Uploaded patch set 4. https://codereview.appspot.com/7400044/diff/3001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.appspot.com/7400044/diff/3001/gm/gmmain.cpp#newcode1650 gm/gmmain.cpp:1650: if (!gmmain.fExpectationsSource.get() && On 2013/02/21 ...
11 years, 6 months ago (2013-02-21 18:08:28 UTC) #5
epoger
LGTM at patchset 4 (as long as it still detects the error like it did ...
11 years, 6 months ago (2013-02-21 18:12:58 UTC) #6
EricB
On 2013/02/21 18:12:58, epoger wrote: > LGTM at patchset 4 > (as long as it ...
11 years, 6 months ago (2013-02-21 18:34:25 UTC) #7
Leon
> This ugliness has a lot to do with ErrorBitfield's dual life: bitfield > by ...
11 years, 6 months ago (2013-02-21 18:38:23 UTC) #8
epoger
11 years, 6 months ago (2013-02-21 19:25:32 UTC) #9
On Thu, Feb 21, 2013 at 1:38 PM, Leon Scroggins <scroggo@google.com> wrote:
>
>> This ugliness has a lot to do with ErrorBitfield's dual life: bitfield
>> by day, enum by night.  (See
>> https://code.google.com/p/skia/source/browse/trunk/gm/gmmain.cpp?r=7724#83
>
>
> FWIW, we actually use enums as bitfields in Skia (For example
>
https://code.google.com/p/skia/source/browse/trunk/include/core/SkPaint.h?r=7...)

Well, SkPaint::Flags is an enum of bitfield *masks*, which is fine.

What would be bad is if SkPaint::fFlags was expected to be EITHER
kAntiAlias_Flag OR kUnderlineText_Flag , rather than allowing for
arbitrary combinations.

And that's what we do with ErrorBitfield in GM. :-(

>
> --
> Leon Scroggins III
> scroggo@google.com
Sign in to reply to this message.

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