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

Issue 12992003: gm: change ErrorBitfield to ErrorType/ErrorCombination (Closed)

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

Description

gm: change ErrorBitfield to ErrorType/ErrorCombination This will enable future GM changes to report errors more completely/consistently, like skdiff. Committed: https://code.google.com/p/skia/source/detail?r=8344

Patch Set 1 #

Total comments: 1

Patch Set 2 : create_ErrorType_enum #

Patch Set 3 : minor_adjustments #

Total comments: 4

Patch Set 4 : sync_to_r8310 #

Patch Set 5 : preserve_bad_logic_in_test_deferred_drawing #

Total comments: 15

Patch Set 6 : address_patchset_5_comments #

Patch Set 7 : put_gpu_cache_params_back_in_ifdef_jail #

Total comments: 2

Patch Set 8 : sync_to_r8339 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -183 lines) Patch
A gm/gm_error.h View 1 2 3 4 5 1 chunk +89 lines, -0 lines 0 comments Download
M gm/gmmain.cpp View 1 2 3 4 5 6 7 40 chunks +190 lines, -183 lines 3 comments Download

Messages

Total messages: 19 (0 generated)
epoger
https://codereview.chromium.org/12992003/diff/1/gm/gm_error.h File gm/gm_error.h (right): https://codereview.chromium.org/12992003/diff/1/gm/gm_error.h#newcode14 gm/gm_error.h:14: typedef int ErrorBitfield; patchset 1: pull ErrorBitfield definitions into ...
7 years, 9 months ago (2013-03-21 17:56:27 UTC) #1
epoger
https://codereview.chromium.org/12992003/diff/9001/gm/gm_error.h File gm/gm_error.h (right): https://codereview.chromium.org/12992003/diff/9001/gm/gm_error.h#newcode14 gm/gm_error.h:14: /** patchsets 2+3: instead of an ErrorBitfield (alias for ...
7 years, 9 months ago (2013-03-21 20:40:17 UTC) #2
epoger
Ready for review at patchset 4... but I suggest comparing patchsets 1 and 3 when ...
7 years, 9 months ago (2013-03-21 20:44:55 UTC) #3
epoger
I sent this CL to the Skia_Linux_NoGPU bot (specifying -r 8310) to check for warnings-as-errors ...
7 years, 9 months ago (2013-03-21 21:56:54 UTC) #4
epoger
On 2013/03/21 21:56:54, epoger wrote: > Soon, I will try running that test locally and ...
7 years, 9 months ago (2013-03-22 01:59:20 UTC) #5
epoger
https://codereview.chromium.org/12992003/diff/21001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.chromium.org/12992003/diff/21001/gm/gmmain.cpp#newcode875 gm/gmmain.cpp:875: if (errors.isEmpty()) { Yikes, this "fixes" the "problem" revealed ...
7 years, 9 months ago (2013-03-22 02:39:44 UTC) #6
epoger
On 2013/03/22 02:39:44, epoger wrote: > Yikes, this "fixes" the "problem" revealed by the trybots... ...
7 years, 9 months ago (2013-03-22 02:42:10 UTC) #7
epoger
Trybots are looking good so far. PTAL at patchset 5.
7 years, 9 months ago (2013-03-22 03:12:29 UTC) #8
borenet
I like it! Hiding the bitwise operations is great for readability. Just a few comments. ...
7 years, 9 months ago (2013-03-22 13:53:29 UTC) #9
epoger
Thanks, Eric! https://codereview.chromium.org/12992003/diff/21001/gm/gm_error.h File gm/gm_error.h (right): https://codereview.chromium.org/12992003/diff/21001/gm/gm_error.h#newcode18 gm/gm_error.h:18: kNoGpuContext_ErrorType, On 2013/03/22 13:53:29, borenet wrote: > ...
7 years, 9 months ago (2013-03-22 14:31:23 UTC) #10
epoger
On 2013/03/22 14:31:23, epoger wrote: > Thanks, Eric! (see diff between patchsets 5 and 6 ...
7 years, 9 months ago (2013-03-22 14:32:54 UTC) #11
borenet
LGTM https://codereview.chromium.org/12992003/diff/21001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.chromium.org/12992003/diff/21001/gm/gmmain.cpp#newcode395 gm/gmmain.cpp:395: return kNoGpuContext_ErrorType; On 2013/03/22 14:31:23, epoger wrote: > ...
7 years, 9 months ago (2013-03-22 14:37:12 UTC) #12
epoger
Eric, PTAL at patchset 7 to make sure you're still on board. In the meanwhile, ...
7 years, 9 months ago (2013-03-22 15:41:37 UTC) #13
bsalomon
https://codereview.chromium.org/12992003/diff/21003/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.chromium.org/12992003/diff/21003/gm/gmmain.cpp#newcode398 gm/gmmain.cpp:398: return ErrorCombination(kNoGpuContext_ErrorType); Drive-by: This is unreachable because of the ...
7 years, 9 months ago (2013-03-22 16:03:23 UTC) #14
epoger
https://codereview.chromium.org/12992003/diff/21003/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.chromium.org/12992003/diff/21003/gm/gmmain.cpp#newcode398 gm/gmmain.cpp:398: return ErrorCombination(kNoGpuContext_ErrorType); On 2013/03/22 16:03:23, bsalomon wrote: > Drive-by: ...
7 years, 9 months ago (2013-03-22 16:06:08 UTC) #15
epoger
Trybot results look good, so I'm gonna go ahead and commit this. Eric, if you ...
7 years, 9 months ago (2013-03-22 17:29:37 UTC) #16
epoger
Committed patchset #8 manually as r8344 (presubmit successful).
7 years, 9 months ago (2013-03-22 17:29:50 UTC) #17
borenet
On 2013/03/22 17:29:37, epoger wrote: > Trybot results look good, so I'm gonna go ahead ...
7 years, 9 months ago (2013-03-22 17:42:07 UTC) #18
bsalomon
7 years, 9 months ago (2013-03-25 13:01:50 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/12992003/diff/21003/gm/gmmain.cpp
File gm/gmmain.cpp (right):

https://codereview.chromium.org/12992003/diff/21003/gm/gmmain.cpp#newcode398
gm/gmmain.cpp:398: return ErrorCombination(kNoGpuContext_ErrorType);
On 2013/03/22 16:06:09, epoger wrote:
> On 2013/03/22 16:03:23, bsalomon wrote:
> > Drive-by: This is unreachable because of the loop at 1469 (on the left side)
> > which removes gpu configs that have no context or too high of a sample
count.
> 
> Thanks.  I don't think that's a problem, do you?
> 
> And how on earth did you notice this???

Heh... I added the code at 1469 recently and just happened to notice this change
go by in the stream.

It doesn't seem like a problem to me.

Powered by Google App Engine
This is Rietveld 408576698