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

Unified Diff: src/utils/win/SkHRESULT.h

Issue 2070983002: Move headers in include/utils/win to src/utils/win. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Really rebase. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/win/SkAutoCoInitialize.h ('k') | src/utils/win/SkIStream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/win/SkHRESULT.h
diff --git a/include/utils/win/SkHRESULT.h b/src/utils/win/SkHRESULT.h
similarity index 80%
rename from include/utils/win/SkHRESULT.h
rename to src/utils/win/SkHRESULT.h
index 69a7118940305e7334c3136f67e2b31ca1c81d75..a9cd8c408b9e1b66523437d2eed1767c202425ec 100644
--- a/include/utils/win/SkHRESULT.h
+++ b/src/utils/win/SkHRESULT.h
@@ -11,7 +11,7 @@
#include "SkTypes.h"
#ifdef SK_BUILD_FOR_WIN
-#include "../../private/SkLeanWindows.h"
+#include "SkLeanWindows.h"
void SkTraceHR(const char* file, unsigned long line,
HRESULT hr, const char* msg);
@@ -39,23 +39,23 @@ If the HRESULT FAILED then the macro will return from the current function.
In variants ending with 'M' the given message will be traced when FAILED.
The HR variants will return the HRESULT when FAILED.
The HRB variants will return false when FAILED.
-The HRN variants will return NULL when FAILED.
+The HRN variants will return nullptr when FAILED.
The HRV variants will simply return when FAILED.
The HRZ variants will return 0 when FAILED.
*/
-#define HR(ex) HR_GENERAL(ex, NULL, _hr)
+#define HR(ex) HR_GENERAL(ex, nullptr, _hr)
#define HRM(ex, msg) HR_GENERAL(ex, msg, _hr)
-#define HRB(ex) HR_GENERAL(ex, NULL, false)
+#define HRB(ex) HR_GENERAL(ex, nullptr, false)
#define HRBM(ex, msg) HR_GENERAL(ex, msg, false)
-#define HRN(ex) HR_GENERAL(ex, NULL, NULL)
-#define HRNM(ex, msg) HR_GENERAL(ex, msg, NULL)
+#define HRN(ex) HR_GENERAL(ex, nullptr, nullptr)
+#define HRNM(ex, msg) HR_GENERAL(ex, msg, nullptr)
-#define HRV(ex) HR_GENERAL(ex, NULL, )
+#define HRV(ex) HR_GENERAL(ex, nullptr, )
#define HRVM(ex, msg) HR_GENERAL(ex, msg, )
-#define HRZ(ex) HR_GENERAL(ex, NULL, 0)
+#define HRZ(ex) HR_GENERAL(ex, nullptr, 0)
#define HRZM(ex, msg) HR_GENERAL(ex, msg, 0)
//@}
#endif // SK_BUILD_FOR_WIN
« no previous file with comments | « src/utils/win/SkAutoCoInitialize.h ('k') | src/utils/win/SkIStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698