OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <windows.h> | 8 #include <windows.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #if defined(USE_LINUX_BREAKPAD) | 25 #if defined(USE_LINUX_BREAKPAD) |
26 #include "chrome/app/breakpad_linux.h" | 26 #include "chrome/app/breakpad_linux.h" |
27 #endif | 27 #endif |
28 | 28 |
29 #if defined(OS_MACOSX) | 29 #if defined(OS_MACOSX) |
30 #include "chrome/common/chrome_application_mac.h" | 30 #include "chrome/common/chrome_application_mac.h" |
31 #endif | 31 #endif |
32 | 32 |
33 #if defined(USE_X11) | 33 #if defined(USE_X11) |
34 #include "gfx/gtk_util.h" | 34 #include "ui/gfx/gtk_util.h" |
35 #endif | 35 #endif |
36 | 36 |
37 // Main function for starting the Gpu process. | 37 // Main function for starting the Gpu process. |
38 int GpuMain(const MainFunctionParams& parameters) { | 38 int GpuMain(const MainFunctionParams& parameters) { |
39 base::Time start_time = base::Time::Now(); | 39 base::Time start_time = base::Time::Now(); |
40 | 40 |
41 #if defined(USE_LINUX_BREAKPAD) | 41 #if defined(USE_LINUX_BREAKPAD) |
42 // Needs to be called after we have chrome::DIR_USER_DATA. | 42 // Needs to be called after we have chrome::DIR_USER_DATA. |
43 InitCrashReporter(); | 43 InitCrashReporter(); |
44 #endif | 44 #endif |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 gpu_thread->Init(start_time); | 86 gpu_thread->Init(start_time); |
87 | 87 |
88 gpu_process.set_main_thread(gpu_thread); | 88 gpu_process.set_main_thread(gpu_thread); |
89 | 89 |
90 main_message_loop.Run(); | 90 main_message_loop.Run(); |
91 | 91 |
92 gpu_thread->StopWatchdog(); | 92 gpu_thread->StopWatchdog(); |
93 | 93 |
94 return 0; | 94 return 0; |
95 } | 95 } |
OLD | NEW |