| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/i18n/icu_util.h" | 8 #include "base/i18n/icu_util.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 #if defined(USE_X11) | 36 #if defined(USE_X11) |
| 37 #include "ui/gfx/x/x11_connection.h" | 37 #include "ui/gfx/x/x11_connection.h" |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 int main(int argc, char** argv) { | 40 int main(int argc, char** argv) { |
| 41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
| 42 ui::ScopedOleInitializer ole_initializer_; | 42 ui::ScopedOleInitializer ole_initializer_; |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 CommandLine::Init(argc, argv); | 45 base::CommandLine::Init(argc, argv); |
| 46 | 46 |
| 47 base::AtExitManager at_exit; | 47 base::AtExitManager at_exit; |
| 48 | 48 |
| 49 #if defined(USE_X11) | 49 #if defined(USE_X11) |
| 50 // This demo uses InProcessContextFactory which uses X on a separate Gpu | 50 // This demo uses InProcessContextFactory which uses X on a separate Gpu |
| 51 // thread. | 51 // thread. |
| 52 gfx::InitializeThreadedX11(); | 52 gfx::InitializeThreadedX11(); |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 gfx::GLSurface::InitializeOneOff(); | 55 gfx::GLSurface::InitializeOneOff(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 101 } |
| 102 | 102 |
| 103 ui::ShutdownInputMethod(); | 103 ui::ShutdownInputMethod(); |
| 104 | 104 |
| 105 #if defined(USE_AURA) | 105 #if defined(USE_AURA) |
| 106 aura::Env::DeleteInstance(); | 106 aura::Env::DeleteInstance(); |
| 107 #endif | 107 #endif |
| 108 | 108 |
| 109 return 0; | 109 return 0; |
| 110 } | 110 } |
| OLD | NEW |