| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 385 |
| 386 child_thread->Init(start_time); | 386 child_thread->Init(start_time); |
| 387 | 387 |
| 388 gpu_process.set_main_thread(child_thread); | 388 gpu_process.set_main_thread(child_thread); |
| 389 | 389 |
| 390 if (watchdog_thread.get()) | 390 if (watchdog_thread.get()) |
| 391 watchdog_thread->AddPowerObserver(); | 391 watchdog_thread->AddPowerObserver(); |
| 392 | 392 |
| 393 #if defined(OS_ANDROID) | 393 #if defined(OS_ANDROID) |
| 394 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( | 394 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( |
| 395 tracing::GraphicsMemoryDumpProvider::GetInstance()); | 395 tracing::GraphicsMemoryDumpProvider::GetInstance(), "Graphics"); |
| 396 #endif | 396 #endif |
| 397 | 397 |
| 398 { | 398 { |
| 399 TRACE_EVENT0("gpu", "Run Message Loop"); | 399 TRACE_EVENT0("gpu", "Run Message Loop"); |
| 400 main_message_loop.Run(); | 400 main_message_loop.Run(); |
| 401 } | 401 } |
| 402 | 402 |
| 403 child_thread->StopWatchdog(); | 403 child_thread->StopWatchdog(); |
| 404 | 404 |
| 405 return 0; | 405 return 0; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 return true; | 561 return true; |
| 562 } | 562 } |
| 563 | 563 |
| 564 return false; | 564 return false; |
| 565 } | 565 } |
| 566 #endif // defined(OS_WIN) | 566 #endif // defined(OS_WIN) |
| 567 | 567 |
| 568 } // namespace. | 568 } // namespace. |
| 569 | 569 |
| 570 } // namespace content | 570 } // namespace content |
| OLD | NEW |