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 589d0775410de2e7a7ae9010ecf5bb5787af7c89..1927473b1eb46b0fbc9e8bf726b39a907d7a7578 100644 |
--- a/base/message_loop/message_pump_win.cc |
+++ b/base/message_loop/message_pump_win.cc |
@@ -172,30 +172,6 @@ void MessagePumpForUI::ScheduleDelayedWork(const TimeTicks& delayed_work_time) { |
MESSAGE_LOOP_PROBLEM_MAX); |
} |
-void MessagePumpForUI::PumpOutPendingPaintMessages() { |
- // If we are being called outside of the context of Run, then don't try to do |
- // any work. |
- if (!state_) |
- return; |
- |
- // Create a mini-message-pump to force immediate processing of only Windows |
- // WM_PAINT messages. Don't provide an infinite loop, but do enough peeking |
- // to get the job done. Actual common max is 4 peeks, but we'll be a little |
- // safe here. |
- const int kMaxPeekCount = 20; |
- int peek_count; |
- for (peek_count = 0; peek_count < kMaxPeekCount; ++peek_count) { |
- MSG msg; |
- if (!PeekMessage(&msg, NULL, 0, 0, PM_REMOVE | PM_QS_PAINT)) |
- break; |
- ProcessMessageHelper(msg); |
- if (state_->should_quit) // Handle WM_QUIT. |
- break; |
- } |
- // Histogram what was really being used, to help to adjust kMaxPeekCount. |
- DHISTOGRAM_COUNTS("Loop.PumpOutPendingPaintMessages Peeks", peek_count); |
-} |
- |
//----------------------------------------------------------------------------- |
// MessagePumpForUI private: |