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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); |
56 | 56 |
57 // The ContextFactory must exist before any Compositors are created. | 57 // The ContextFactory must exist before any Compositors are created. |
58 bool context_factory_for_test = false; | 58 bool context_factory_for_test = false; |
59 scoped_ptr<ui::InProcessContextFactory> context_factory( | 59 scoped_ptr<ui::InProcessContextFactory> context_factory( |
60 new ui::InProcessContextFactory(context_factory_for_test)); | 60 new ui::InProcessContextFactory(context_factory_for_test, nullptr)); |
61 context_factory->set_use_test_surface(false); | 61 context_factory->set_use_test_surface(false); |
62 | 62 |
63 base::MessageLoopForUI message_loop; | 63 base::MessageLoopForUI message_loop; |
64 | 64 |
65 base::i18n::InitializeICU(); | 65 base::i18n::InitializeICU(); |
66 | 66 |
67 ui::RegisterPathProvider(); | 67 ui::RegisterPathProvider(); |
68 | 68 |
69 base::FilePath ui_test_pak_path; | 69 base::FilePath ui_test_pak_path; |
70 DCHECK(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path)); | 70 DCHECK(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path)); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } | 102 } |
103 | 103 |
104 ui::ShutdownInputMethod(); | 104 ui::ShutdownInputMethod(); |
105 | 105 |
106 #if defined(USE_AURA) | 106 #if defined(USE_AURA) |
107 aura::Env::DeleteInstance(); | 107 aura::Env::DeleteInstance(); |
108 #endif | 108 #endif |
109 | 109 |
110 return 0; | 110 return 0; |
111 } | 111 } |
OLD | NEW |