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

Unified Diff: gm/gm_error.h

Issue 12992003: gm: change ErrorBitfield to ErrorType/ErrorCombination (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gm/gmmain.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gm_error.h
===================================================================
--- gm/gm_error.h (revision 0)
+++ gm/gm_error.h (revision 0)
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/*
+ * Error codes used by gmmain.cpp.
+ */
+
+namespace skiagm {
+
+ typedef int ErrorBitfield;
epoger 2013/03/21 17:56:27 patchset 1: pull ErrorBitfield definitions into ne
+ // an empty bitfield means no errors:
+ const static ErrorBitfield kEmptyErrorBitfield = 0x00;
+ // individual error types:
+ const static ErrorBitfield kNoGpuContext_ErrorBitmask = 0x01;
+ const static ErrorBitfield kImageMismatch_ErrorBitmask = 0x02;
+ const static ErrorBitfield kMissingExpectations_ErrorBitmask = 0x04;
+ const static ErrorBitfield kWritingReferenceImage_ErrorBitmask = 0x08;
+ // we typically ignore any errors matching this bitmask:
+ const static ErrorBitfield kIgnorable_ErrorBitmask = kMissingExpectations_ErrorBitmask;
+
+}
« 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