| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #include "SkLeanWindows.h" |
| 8 #include "SkThreadID.h" | 9 #include "SkThreadID.h" |
| 9 | 10 |
| 10 #ifdef SK_BUILD_FOR_WIN | 11 #ifdef SK_BUILD_FOR_WIN |
| 11 #include <windows.h> | |
| 12 SkThreadID SkGetThreadID() { return GetCurrentThreadId(); } | 12 SkThreadID SkGetThreadID() { return GetCurrentThreadId(); } |
| 13 #else | 13 #else |
| 14 #include <pthread.h> | 14 #include <pthread.h> |
| 15 SkThreadID SkGetThreadID() { return (int64_t)pthread_self(); } | 15 SkThreadID SkGetThreadID() { return (int64_t)pthread_self(); } |
| 16 #endif | 16 #endif |
| OLD | NEW |