blob: 3383a4d522d585d55e8a0923a902d813f2a65956 [file] [log] [blame]
[email protected]4ddbd1422014-02-11 05:12:071// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_
6#define BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_
7
8#include <windows.h>
9
10#include "base/base_export.h"
11
12namespace base {
13namespace debug {
14
anpol80e1d0d2016-11-02 11:07:0315// Crashes the process, using base::debug::Alias to leave valuable debugging
16// information in the crash dump. Pass values for |header| and |shared_section|
17// in the event of a bitmap allocation failure, to gather information about
18// those as well.
19void BASE_EXPORT CollectGDIUsageAndDie(BITMAPINFOHEADER* header = nullptr,
20 HANDLE shared_section = nullptr);
[email protected]4ddbd1422014-02-11 05:12:0721
22} // namespace debug
23} // namespace base
24
25#endif // BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_