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

Side by Side Diff: base/debug/gdi_debug_util_win.h

Issue 2452933002: Collect information on the dump when GetDC fails. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | base/debug/gdi_debug_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 leaving valuable information on the dump via
16 // debug::alias so we can find what is causing the allocation failures. 16 // |base::debug::Alias| so we can find what is causing the GDI failures.
Peter Kasting 2016/10/26 17:10:42 Nit: No || on classnames (just variable names)
17 void BASE_EXPORT CollectGDIUsageAndDie();
18
19 // Crashes the process leaving valuable information about the bitmap
20 // properties so we can find what is causing the bitmap allocation failures.
17 void BASE_EXPORT GDIBitmapAllocFailure(BITMAPINFOHEADER* header, 21 void BASE_EXPORT GDIBitmapAllocFailure(BITMAPINFOHEADER* header,
18 HANDLE shared_section); 22 HANDLE shared_section);
Peter Kasting 2016/10/26 17:10:42 Nit: I suggest just one function declaration, to m
19 23
20 } // namespace debug 24 } // namespace debug
21 } // namespace base 25 } // namespace base
22 26
23 #endif // BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_ 27 #endif // BASE_DEBUG_GDI_DEBUG_UTIL_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | base/debug/gdi_debug_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698