Index: gm/gm_error.h |
=================================================================== |
--- gm/gm_error.h (revision 8514) |
+++ gm/gm_error.h (working copy) |
@@ -9,23 +9,15 @@ |
* Error codes used by gmmain.cpp. |
*/ |
-#ifndef gm_error_DEFINED |
-#define gm_error_DEFINED |
- |
-#include "gm.h" |
- |
namespace skiagm { |
/** |
* The complete list of error types we might encounter in GM. |
*/ |
enum ErrorType { |
- // Even though kNoGpuContext_ErrorType only occurs when SK_SUPPORT_GPU |
- // is turned on, we always include this type in our enum so that |
- // reports will be consistent whether SK_SUPPORT_GPU is turned on |
- // or off (as long as the number of these errors is 0). |
+#if SK_SUPPORT_GPU |
kNoGpuContext_ErrorType, |
- |
+#endif |
kImageMismatch_ErrorType, |
kMissingExpectations_ErrorType, |
kWritingReferenceImage_ErrorType, |
@@ -33,25 +25,6 @@ |
}; |
/** |
- * Returns the name of the given ErrorType. |
- */ |
- const char *getErrorTypeName(ErrorType type) { |
- switch(type) { |
- case kNoGpuContext_ErrorType: |
- return "NoGpuContext"; |
- case kImageMismatch_ErrorType: |
- return "ImageMismatch"; |
- case kMissingExpectations_ErrorType: |
- return "MissingExpectations"; |
- case kWritingReferenceImage_ErrorType: |
- return "WritingReferenceImage"; |
- } |
- // control should never reach here |
- SkDEBUGFAIL("getErrorTypeName() called with unknown type"); |
- return "Unknown"; |
- } |
- |
- /** |
* A combination of 0 or more ErrorTypes. |
*/ |
class ErrorCombination { |
@@ -114,5 +87,3 @@ |
// No errors at all. |
const static ErrorCombination kEmpty_ErrorCombination; |
} |
- |
-#endif // ifndef gm_error_DEFINED |