OLD | NEW |
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 <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <dwmapi.h> | 8 #include <dwmapi.h> |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 dead_on_arrival, | 341 dead_on_arrival, |
342 gpu_info, | 342 gpu_info, |
343 deferred_messages.Get()); | 343 deferred_messages.Get()); |
344 while (!deferred_messages.Get().empty()) | 344 while (!deferred_messages.Get().empty()) |
345 deferred_messages.Get().pop(); | 345 deferred_messages.Get().pop(); |
346 | 346 |
347 child_thread->Init(start_time); | 347 child_thread->Init(start_time); |
348 | 348 |
349 gpu_process.set_main_thread(child_thread); | 349 gpu_process.set_main_thread(child_thread); |
350 | 350 |
351 if (watchdog_thread) | 351 if (watchdog_thread.get()) |
352 watchdog_thread->AddPowerObserver(); | 352 watchdog_thread->AddPowerObserver(); |
353 | 353 |
354 { | 354 { |
355 TRACE_EVENT0("gpu", "Run Message Loop"); | 355 TRACE_EVENT0("gpu", "Run Message Loop"); |
356 main_message_loop.Run(); | 356 main_message_loop.Run(); |
357 } | 357 } |
358 | 358 |
359 child_thread->StopWatchdog(); | 359 child_thread->StopWatchdog(); |
360 | 360 |
361 return 0; | 361 return 0; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 return true; | 512 return true; |
513 } | 513 } |
514 | 514 |
515 return false; | 515 return false; |
516 } | 516 } |
517 #endif // defined(OS_WIN) | 517 #endif // defined(OS_WIN) |
518 | 518 |
519 } // namespace. | 519 } // namespace. |
520 | 520 |
521 } // namespace content | 521 } // namespace content |
OLD | NEW |