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(), "AndroidGraphics", |
| 396 nullptr); |
396 #endif | 397 #endif |
397 | 398 |
398 { | 399 { |
399 TRACE_EVENT0("gpu", "Run Message Loop"); | 400 TRACE_EVENT0("gpu", "Run Message Loop"); |
400 main_message_loop.Run(); | 401 main_message_loop.Run(); |
401 } | 402 } |
402 | 403 |
403 child_thread->StopWatchdog(); | 404 child_thread->StopWatchdog(); |
404 | 405 |
405 return 0; | 406 return 0; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 return true; | 564 return true; |
564 } | 565 } |
565 | 566 |
566 return false; | 567 return false; |
567 } | 568 } |
568 #endif // defined(OS_WIN) | 569 #endif // defined(OS_WIN) |
569 | 570 |
570 } // namespace. | 571 } // namespace. |
571 | 572 |
572 } // namespace content | 573 } // namespace content |
OLD | NEW |