aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/SkThreadID.h
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2015-09-29 14:38:01 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-29 14:38:01 -0700
commite4c17356b6c819df8effb29dfb4bb903520b8c2b (patch)
treeb8a391f87ceb34e44ab4c26a19a941c048a01259 /include/private/SkThreadID.h
parentb5d32635345d6a974ad2ceb826c3bfb98107ab79 (diff)
Unify ThreadID.
Diffstat (limited to 'include/private/SkThreadID.h')
-rw-r--r--include/private/SkThreadID.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/private/SkThreadID.h b/include/private/SkThreadID.h
new file mode 100644
index 0000000000..a210a929f3
--- /dev/null
+++ b/include/private/SkThreadID.h
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkThreadID_DEFINED
+#define SkThreadID_DEFINED
+
+#include "SkTypes.h"
+
+typedef int64_t SkThreadID;
+
+SkThreadID SkGetThreadID();
+
+const SkThreadID kIllegalThreadID = 0;
+
+#endif // SkThreadID_DEFINED