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

Side by Side Diff: src/ports/SkTLS_win.cpp

Issue 2041943002: SkLeanWindows.h: #include "Windows.h" fewer places (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-06-07 (Tuesday) 11:28:42 EDT Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/ports/SkOSLibrary_win.cpp ('k') | src/ports/SkTypeface_win_dw.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 #include "SkTypes.h" 7 #include "SkTypes.h"
8 #if defined(SK_BUILD_FOR_WIN32) 8 #if defined(SK_BUILD_FOR_WIN32)
9 9
10 #include "SkLeanWindows.h"
11 #include "SkMutex.h"
10 #include "SkTLS.h" 12 #include "SkTLS.h"
11 #include "SkMutex.h"
12 13
13 static bool gOnce = false; 14 static bool gOnce = false;
14 static DWORD gTlsIndex; 15 static DWORD gTlsIndex;
15 SK_DECLARE_STATIC_MUTEX(gMutex); 16 SK_DECLARE_STATIC_MUTEX(gMutex);
16 17
17 void* SkTLS::PlatformGetSpecific(bool forceCreateTheSlot) { 18 void* SkTLS::PlatformGetSpecific(bool forceCreateTheSlot) {
18 if (!forceCreateTheSlot && !gOnce) { 19 if (!forceCreateTheSlot && !gOnce) {
19 return nullptr; 20 return nullptr;
20 } 21 }
21 22
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #else 71 #else
71 72
72 #pragma data_seg(".CRT$XLB") 73 #pragma data_seg(".CRT$XLB")
73 PIMAGE_TLS_CALLBACK skia_tls_callback = onTLSCallback; 74 PIMAGE_TLS_CALLBACK skia_tls_callback = onTLSCallback;
74 #pragma data_seg() 75 #pragma data_seg()
75 76
76 #endif 77 #endif
77 } 78 }
78 79
79 #endif//defined(SK_BUILD_FOR_WIN32) 80 #endif//defined(SK_BUILD_FOR_WIN32)
OLDNEW
« no previous file with comments | « src/ports/SkOSLibrary_win.cpp ('k') | src/ports/SkTypeface_win_dw.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698