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

Side by Side Diff: include/core/SkPostConfig.h

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 | « include/core/SkMath.h ('k') | include/core/SkPreConfig.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 // IWYU pragma: private, include "SkTypes.h" 8 // IWYU pragma: private, include "SkTypes.h"
9 9
10 #ifndef SkPostConfig_DEFINED 10 #ifndef SkPostConfig_DEFINED
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 /////////////////////////////////////////////////////////////////////////////// 101 ///////////////////////////////////////////////////////////////////////////////
102 102
103 // TODO(mdempsky): Move elsewhere as appropriate. 103 // TODO(mdempsky): Move elsewhere as appropriate.
104 #include <new> 104 #include <new>
105 105
106 106
107 /////////////////////////////////////////////////////////////////////////////// 107 ///////////////////////////////////////////////////////////////////////////////
108 108
109 #ifdef SK_BUILD_FOR_WIN 109 #ifdef SK_BUILD_FOR_WIN
110 # ifndef WIN32_LEAN_AND_MEAN
111 # define WIN32_LEAN_AND_MEAN
112 # define WIN32_IS_MEAN_WAS_LOCALLY_DEFINED
113 # endif
114 # ifndef NOMINMAX
115 # define NOMINMAX
116 # define NOMINMAX_WAS_LOCALLY_DEFINED
117 # endif
118 #
119 # include <windows.h>
120 #
121 # ifdef WIN32_IS_MEAN_WAS_LOCALLY_DEFINED
122 # undef WIN32_IS_MEAN_WAS_LOCALLY_DEFINED
123 # undef WIN32_LEAN_AND_MEAN
124 # endif
125 # ifdef NOMINMAX_WAS_LOCALLY_DEFINED
126 # undef NOMINMAX_WAS_LOCALLY_DEFINED
127 # undef NOMINMAX
128 # endif
129 #
130 # ifndef SK_A32_SHIFT 110 # ifndef SK_A32_SHIFT
131 # define SK_A32_SHIFT 24 111 # define SK_A32_SHIFT 24
132 # define SK_R32_SHIFT 16 112 # define SK_R32_SHIFT 16
133 # define SK_G32_SHIFT 8 113 # define SK_G32_SHIFT 8
134 # define SK_B32_SHIFT 0 114 # define SK_B32_SHIFT 0
135 # endif 115 # endif
136 # 116 #
137 #endif 117 #endif
138 118
139 #if defined(GOOGLE3) 119 #if defined(GOOGLE3)
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 334
355 #ifndef SK_HISTOGRAM_BOOLEAN 335 #ifndef SK_HISTOGRAM_BOOLEAN
356 # define SK_HISTOGRAM_BOOLEAN(name, value) 336 # define SK_HISTOGRAM_BOOLEAN(name, value)
357 #endif 337 #endif
358 338
359 #ifndef SK_HISTOGRAM_ENUMERATION 339 #ifndef SK_HISTOGRAM_ENUMERATION
360 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value) 340 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value)
361 #endif 341 #endif
362 342
363 #endif // SkPostConfig_DEFINED 343 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkMath.h ('k') | include/core/SkPreConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698