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

Side by Side Diff: include/utils/win/SkHRESULT.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/utils/win/SkAutoCoInitialize.h ('k') | include/utils/win/SkIStream.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 2011 Google Inc. 2 * Copyright 2011 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 #ifndef SkHRESULT_DEFINED 8 #ifndef SkHRESULT_DEFINED
9 #define SkHRESULT_DEFINED 9 #define SkHRESULT_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 #ifdef SK_BUILD_FOR_WIN 12 #ifdef SK_BUILD_FOR_WIN
13 13
14 #include "../../private/SkLeanWindows.h"
15
14 void SkTraceHR(const char* file, unsigned long line, 16 void SkTraceHR(const char* file, unsigned long line,
15 HRESULT hr, const char* msg); 17 HRESULT hr, const char* msg);
16 18
17 #ifdef SK_DEBUG 19 #ifdef SK_DEBUG
18 #define SK_TRACEHR(_hr, _msg) SkTraceHR(__FILE__, __LINE__, _hr, _msg) 20 #define SK_TRACEHR(_hr, _msg) SkTraceHR(__FILE__, __LINE__, _hr, _msg)
19 #else 21 #else
20 #define SK_TRACEHR(_hr, _msg) sk_ignore_unused_variable(_hr) 22 #define SK_TRACEHR(_hr, _msg) sk_ignore_unused_variable(_hr)
21 #endif 23 #endif
22 24
23 #define HR_GENERAL(_ex, _msg, _ret) {\ 25 #define HR_GENERAL(_ex, _msg, _ret) {\
(...skipping 27 matching lines...) Expand all
51 #define HRNM(ex, msg) HR_GENERAL(ex, msg, NULL) 53 #define HRNM(ex, msg) HR_GENERAL(ex, msg, NULL)
52 54
53 #define HRV(ex) HR_GENERAL(ex, NULL, ) 55 #define HRV(ex) HR_GENERAL(ex, NULL, )
54 #define HRVM(ex, msg) HR_GENERAL(ex, msg, ) 56 #define HRVM(ex, msg) HR_GENERAL(ex, msg, )
55 57
56 #define HRZ(ex) HR_GENERAL(ex, NULL, 0) 58 #define HRZ(ex) HR_GENERAL(ex, NULL, 0)
57 #define HRZM(ex, msg) HR_GENERAL(ex, msg, 0) 59 #define HRZM(ex, msg) HR_GENERAL(ex, msg, 0)
58 //@} 60 //@}
59 #endif // SK_BUILD_FOR_WIN 61 #endif // SK_BUILD_FOR_WIN
60 #endif // SkHRESULT_DEFINED 62 #endif // SkHRESULT_DEFINED
OLDNEW
« no previous file with comments | « include/utils/win/SkAutoCoInitialize.h ('k') | include/utils/win/SkIStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698