diff options
author | 2013-07-16 14:59:24 +0000 | |
---|---|---|
committer | 2013-07-16 14:59:24 +0000 | |
commit | f2e7dbb09fabc31fe5b16f6dc1a16593f518ca7d (patch) | |
tree | 5e0cc6a0bf8e2b89d57c99ef54f34e26395df548 /src/ports/SkTLS_none.cpp | |
parent | 883fe7f8b13be4ae3e3f8d8f8a6d6e94d13f9392 (diff) |
Split TLS implementation into its own translation unit.
SkTLS has it's own header separate from SkThread, and having SkThread own
the platform implementation of SkTLS is problematic with Chromium. The
simplest way to clean this up is to put the implementation in its own set
of files, where it is also more easily found.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/19240007
git-svn-id: http://skia.googlecode.com/svn/trunk@10105 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports/SkTLS_none.cpp')
-rw-r--r-- | src/ports/SkTLS_none.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ports/SkTLS_none.cpp b/src/ports/SkTLS_none.cpp new file mode 100644 index 0000000000..95f6e37037 --- /dev/null +++ b/src/ports/SkTLS_none.cpp @@ -0,0 +1,18 @@ +/* + * Copyright 2013 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "SkTLS.h" + +static void* gSpecific = NULL; + +void* SkTLS::PlatformGetSpecific(bool) { + return gSpecific; +} + +void SkTLS::PlatformSetSpecific(void* ptr) { + gSpecific = ptr; +} |