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

Side by Side Diff: base/message_loop/message_loop.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 #else 557 #else
558 incoming_task_queue_->ReloadWorkQueue(&work_queue_); 558 incoming_task_queue_->ReloadWorkQueue(&work_queue_);
559 #endif 559 #endif
560 } 560 }
561 } 561 }
562 562
563 void MessageLoop::ScheduleWork() { 563 void MessageLoop::ScheduleWork() {
564 pump_->ScheduleWork(); 564 pump_->ScheduleWork();
565 } 565 }
566 566
567 #if defined(OS_WIN)
568 bool MessageLoop::MessagePumpWasSignaled() {
569 return pump_->WasSignaled();
570 }
571 #endif
572
567 //------------------------------------------------------------------------------ 573 //------------------------------------------------------------------------------
568 // Method and data for histogramming events and actions taken by each instance 574 // Method and data for histogramming events and actions taken by each instance
569 // on each thread. 575 // on each thread.
570 576
571 void MessageLoop::StartHistogrammer() { 577 void MessageLoop::StartHistogrammer() {
572 #if !defined(OS_NACL) // NaCl build has no metrics code. 578 #if !defined(OS_NACL) // NaCl build has no metrics code.
573 if (enable_histogrammer_ && !message_histogram_ 579 if (enable_histogrammer_ && !message_histogram_
574 && StatisticsRecorder::IsActive()) { 580 && StatisticsRecorder::IsActive()) {
575 std::string thread_name = GetThreadName(); 581 std::string thread_name = GetThreadName();
576 DCHECK(!thread_name.empty()); 582 DCHECK(!thread_name.empty());
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 persistent, 763 persistent,
758 mode, 764 mode,
759 controller, 765 controller,
760 delegate); 766 delegate);
761 } 767 }
762 #endif 768 #endif
763 769
764 #endif // !defined(OS_NACL_SFI) 770 #endif // !defined(OS_NACL_SFI)
765 771
766 } // namespace base 772 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698