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

Unified Diff: base/debug/gdi_debug_util_win.h

Issue 2452933002: Collect information on the dump when GetDC fails. (Closed)
Patch Set: Remove excessive check for |header|. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/debug/gdi_debug_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/gdi_debug_util_win.h
diff --git a/base/debug/gdi_debug_util_win.h b/base/debug/gdi_debug_util_win.h
index 5887ecb8464184e63013a374fa5d9bb701e207ba..3383a4d522d585d55e8a0923a902d813f2a65956 100644
--- a/base/debug/gdi_debug_util_win.h
+++ b/base/debug/gdi_debug_util_win.h
@@ -12,10 +12,12 @@
namespace base {
namespace debug {
-// Crashes the process leaving valuable information on the dump via
-// debug::alias so we can find what is causing the allocation failures.
-void BASE_EXPORT GDIBitmapAllocFailure(BITMAPINFOHEADER* header,
- HANDLE shared_section);
+// Crashes the process, using base::debug::Alias to leave valuable debugging
+// information in the crash dump. Pass values for |header| and |shared_section|
+// in the event of a bitmap allocation failure, to gather information about
+// those as well.
+void BASE_EXPORT CollectGDIUsageAndDie(BITMAPINFOHEADER* header = nullptr,
+ HANDLE shared_section = nullptr);
} // namespace debug
} // namespace base
« 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