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

Side by Side Diff: gpu/ipc/service/gpu_watchdog_thread.cc

Issue 2393333002: Remove code that checks if MessagePumpForGpu was signaled. (Closed)
Patch Set: Remove the code that checks if MessagePumpForGpu was signaled. It doesn't work as expected. Created 4 years, 2 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
« no previous file with comments | « base/message_loop/message_pump_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "gpu/ipc/service/gpu_watchdog_thread.h" 5 #include "gpu/ipc/service/gpu_watchdog_thread.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 356
357 base::debug::Alias(&interrupt_delay); 357 base::debug::Alias(&interrupt_delay);
358 base::debug::Alias(&current_cpu_time); 358 base::debug::Alias(&current_cpu_time);
359 base::debug::Alias(&time_since_arm); 359 base::debug::Alias(&time_since_arm);
360 360
361 bool using_thread_ticks = base::ThreadTicks::IsSupported(); 361 bool using_thread_ticks = base::ThreadTicks::IsSupported();
362 base::debug::Alias(&using_thread_ticks); 362 base::debug::Alias(&using_thread_ticks);
363 363
364 bool using_high_res_timer = base::Time::IsHighResolutionTimerInUse(); 364 bool using_high_res_timer = base::Time::IsHighResolutionTimerInUse();
365 base::debug::Alias(&using_high_res_timer); 365 base::debug::Alias(&using_high_res_timer);
366
367 bool message_pump_is_signaled =
368 watched_message_loop_->MessagePumpWasSignaled();
369 base::debug::Alias(&message_pump_is_signaled);
370 #endif 366 #endif
371 367
372 base::Time current_time = base::Time::Now(); 368 base::Time current_time = base::Time::Now();
373 base::TimeTicks current_timeticks = base::TimeTicks::Now(); 369 base::TimeTicks current_timeticks = base::TimeTicks::Now();
374 base::debug::Alias(&current_time); 370 base::debug::Alias(&current_time);
375 base::debug::Alias(&current_timeticks); 371 base::debug::Alias(&current_timeticks);
376 372
377 LOG(ERROR) << "The GPU process hung. Terminating after " 373 LOG(ERROR) << "The GPU process hung. Terminating after "
378 << timeout_.InMilliseconds() << " ms."; 374 << timeout_.InMilliseconds() << " ms.";
379 375
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 int tty_number; 477 int tty_number;
482 size_t num_res = sscanf(tty_string, "tty%d\n", &tty_number); 478 size_t num_res = sscanf(tty_string, "tty%d\n", &tty_number);
483 if (num_res == 1) 479 if (num_res == 1)
484 return tty_number; 480 return tty_number;
485 } 481 }
486 return -1; 482 return -1;
487 } 483 }
488 #endif 484 #endif
489 485
490 } // namespace gpu 486 } // namespace gpu
OLDNEW
« no previous file with comments | « base/message_loop/message_pump_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698