Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: ui/views/examples/examples_main.cc

Issue 638653003: Make ui::Compositor use ui::Scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/snapshot/snapshot_aura_unittest.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
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 scoped_ptr<ui::InProcessContextFactory> context_factory( 59 scoped_ptr<ui::InProcessContextFactory> context_factory(
59 new ui::InProcessContextFactory()); 60 new ui::InProcessContextFactory(context_factory_for_test));
60 context_factory->set_use_test_surface(false); 61 context_factory->set_use_test_surface(false);
61 62
62 base::MessageLoopForUI message_loop; 63 base::MessageLoopForUI message_loop;
63 64
64 base::i18n::InitializeICU(); 65 base::i18n::InitializeICU();
65 66
66 ui::RegisterPathProvider(); 67 ui::RegisterPathProvider();
67 68
68 base::FilePath ui_test_pak_path; 69 base::FilePath ui_test_pak_path;
69 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
101 } 102 }
102 103
103 ui::ShutdownInputMethod(); 104 ui::ShutdownInputMethod();
104 105
105 #if defined(USE_AURA) 106 #if defined(USE_AURA)
106 aura::Env::DeleteInstance(); 107 aura::Env::DeleteInstance();
107 #endif 108 #endif
108 109
109 return 0; 110 return 0;
110 } 111 }
OLDNEW
« no previous file with comments | « ui/snapshot/snapshot_aura_unittest.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698