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

Unified Diff: include/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 | « include/utils/win/SkAutoCoInitialize.h ('k') | include/utils/win/SkIStream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/utils/win/SkHRESULT.h
diff --git a/include/utils/win/SkHRESULT.h b/include/utils/win/SkHRESULT.h
deleted file mode 100644
index 69a7118940305e7334c3136f67e2b31ca1c81d75..0000000000000000000000000000000000000000
--- a/include/utils/win/SkHRESULT.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkHRESULT_DEFINED
-#define SkHRESULT_DEFINED
-
-#include "SkTypes.h"
-#ifdef SK_BUILD_FOR_WIN
-
-#include "../../private/SkLeanWindows.h"
-
-void SkTraceHR(const char* file, unsigned long line,
- HRESULT hr, const char* msg);
-
-#ifdef SK_DEBUG
-#define SK_TRACEHR(_hr, _msg) SkTraceHR(__FILE__, __LINE__, _hr, _msg)
-#else
-#define SK_TRACEHR(_hr, _msg) sk_ignore_unused_variable(_hr)
-#endif
-
-#define HR_GENERAL(_ex, _msg, _ret) {\
- HRESULT _hr = _ex;\
- if (FAILED(_hr)) {\
- SK_TRACEHR(_hr, _msg);\
- return _ret;\
- }\
-}
-
-//@{
-/**
-These macros are for reporting HRESULT errors.
-The expression will be evaluated.
-If the resulting HRESULT SUCCEEDED then execution will continue normally.
-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 HRV variants will simply return when FAILED.
-The HRZ variants will return 0 when FAILED.
-*/
-#define HR(ex) HR_GENERAL(ex, NULL, _hr)
-#define HRM(ex, msg) HR_GENERAL(ex, msg, _hr)
-
-#define HRB(ex) HR_GENERAL(ex, NULL, 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 HRV(ex) HR_GENERAL(ex, NULL, )
-#define HRVM(ex, msg) HR_GENERAL(ex, msg, )
-
-#define HRZ(ex) HR_GENERAL(ex, NULL, 0)
-#define HRZM(ex, msg) HR_GENERAL(ex, msg, 0)
-//@}
-#endif // SK_BUILD_FOR_WIN
-#endif // SkHRESULT_DEFINED
« 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