OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_ | 5 #ifndef BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_ |
6 #define BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_ | 6 #define BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 namespace debug { | 13 namespace debug { |
14 | 14 |
15 // Crashes the process leaving valuable information on the dump via | 15 // Crashes the process, using base::debug::Alias to leave valuable debugging |
16 // debug::alias so we can find what is causing the allocation failures. | 16 // information in the crash dump. Pass values for |header| and |shared_section| |
17 void BASE_EXPORT GDIBitmapAllocFailure(BITMAPINFOHEADER* header, | 17 // in the event of a bitmap allocation failure, to gather information about |
18 HANDLE shared_section); | 18 // those as well. |
| 19 void BASE_EXPORT CollectGDIUsageAndDie(BITMAPINFOHEADER* header = nullptr, |
| 20 HANDLE shared_section = nullptr); |
19 | 21 |
20 } // namespace debug | 22 } // namespace debug |
21 } // namespace base | 23 } // namespace base |
22 | 24 |
23 #endif // BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_ | 25 #endif // BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_ |
OLD | NEW |