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

Unified Diff: base/message_loop/message_pump_win.cc

Issue 2077613002: Verify if GPU message pump is signaled when it hangs in WaitForWork (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed spelling 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
Index: base/message_loop/message_pump_win.cc
diff --git a/base/message_loop/message_pump_win.cc b/base/message_loop/message_pump_win.cc
index 5e0c08a2506b8bb2c2f8a024c16bb49c788f3766..a2c98374ddd643bc4ec2a9c0f178c67652f09b19 100644
--- a/base/message_loop/message_pump_win.cc
+++ b/base/message_loop/message_pump_win.cc
@@ -465,6 +465,11 @@ void MessagePumpForGpu::ScheduleDelayedWork(
delayed_work_time_ = delayed_work_time;
}
+bool MessagePumpForGpu::WasSignaled() {
+ // If |event_| was set this would reset it back to unset state.
+ return WaitForSingleObject(event_, 0) == WAIT_OBJECT_0;
+}
+
//-----------------------------------------------------------------------------
// MessagePumpForGpu private:

Powered by Google App Engine
This is Rietveld 408576698