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

Side by Side Diff: gm/gm_error.h

Issue 13650002: gm: report ExpectationsMismatch and RenderModeMismatch results separately (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: rename_kImageMismatch_to_kExpectationsMismatch Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | gm/gmmain.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 /* 8 /*
9 * Error codes used by gmmain.cpp. 9 * Error codes used by gmmain.cpp.
10 */ 10 */
11 11
12 #ifndef gm_error_DEFINED 12 #ifndef gm_error_DEFINED
13 #define gm_error_DEFINED 13 #define gm_error_DEFINED
14 14
15 #include "gm.h" 15 #include "gm.h"
16 16
17 namespace skiagm { 17 namespace skiagm {
18 18
19 /** 19 /**
20 * The complete list of error types we might encounter in GM. 20 * The complete list of error types we might encounter in GM.
21 */ 21 */
22 enum ErrorType { 22 enum ErrorType {
23 // Even though kNoGpuContext_ErrorType only occurs when SK_SUPPORT_GPU 23 // Even though kNoGpuContext_ErrorType only occurs when SK_SUPPORT_GPU
24 // is turned on, we always include this type in our enum so that 24 // is turned on, we always include this type in our enum so that
25 // reports will be consistent whether SK_SUPPORT_GPU is turned on 25 // reports will be consistent whether SK_SUPPORT_GPU is turned on
26 // or off (as long as the number of these errors is 0). 26 // or off (as long as the number of these errors is 0).
27 kNoGpuContext_ErrorType, 27 kNoGpuContext_ErrorType,
28 28
29 kImageMismatch_ErrorType, 29 kExpectationsMismatch_ErrorType,
epoger 2013/04/04 16:50:49 patchset 2 renames kImageMismatch to kExpectations
30 kMissingExpectations_ErrorType, 30 kMissingExpectations_ErrorType,
31 kWritingReferenceImage_ErrorType, 31 kWritingReferenceImage_ErrorType,
32 kLast_ErrorType = kWritingReferenceImage_ErrorType 32 kLast_ErrorType = kWritingReferenceImage_ErrorType
33 }; 33 };
34 34
35 /** 35 /**
36 * Returns the name of the given ErrorType. 36 * Returns the name of the given ErrorType.
37 */ 37 */
38 static const char *getErrorTypeName(ErrorType type) { 38 static const char *getErrorTypeName(ErrorType type) {
39 switch(type) { 39 switch(type) {
40 case kNoGpuContext_ErrorType: 40 case kNoGpuContext_ErrorType:
41 return "NoGpuContext"; 41 return "NoGpuContext";
42 case kImageMismatch_ErrorType: 42 case kExpectationsMismatch_ErrorType:
43 return "ImageMismatch"; 43 return "ExpectationsMismatch";
44 case kMissingExpectations_ErrorType: 44 case kMissingExpectations_ErrorType:
45 return "MissingExpectations"; 45 return "MissingExpectations";
46 case kWritingReferenceImage_ErrorType: 46 case kWritingReferenceImage_ErrorType:
47 return "WritingReferenceImage"; 47 return "WritingReferenceImage";
48 } 48 }
49 // control should never reach here 49 // control should never reach here
50 SkDEBUGFAIL("getErrorTypeName() called with unknown type"); 50 SkDEBUGFAIL("getErrorTypeName() called with unknown type");
51 return "Unknown"; 51 return "Unknown";
52 } 52 }
53 53
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 private: 110 private:
111 int fBitfield; 111 int fBitfield;
112 }; 112 };
113 113
114 // No errors at all. 114 // No errors at all.
115 const static ErrorCombination kEmpty_ErrorCombination; 115 const static ErrorCombination kEmpty_ErrorCombination;
116 } 116 }
117 117
118 #endif // ifndef gm_error_DEFINED 118 #endif // ifndef gm_error_DEFINED
OLDNEW
« no previous file with comments | « no previous file | gm/gmmain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698