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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 2803523002: Always create ClientNativePixmapFactory in chrome --mash (Closed)
Patch Set: rebased Created 3 years, 8 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 | « no previous file | ui/aura/env.h » ('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 (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 "content/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 #include "base/allocator/allocator_interception_mac.h" 138 #include "base/allocator/allocator_interception_mac.h"
139 #include "base/memory/memory_pressure_monitor_mac.h" 139 #include "base/memory/memory_pressure_monitor_mac.h"
140 #include "content/browser/bootstrap_sandbox_manager_mac.h" 140 #include "content/browser/bootstrap_sandbox_manager_mac.h"
141 #include "content/browser/cocoa/system_hotkey_helper_mac.h" 141 #include "content/browser/cocoa/system_hotkey_helper_mac.h"
142 #include "content/browser/mach_broker_mac.h" 142 #include "content/browser/mach_broker_mac.h"
143 #include "content/browser/renderer_host/browser_compositor_view_mac.h" 143 #include "content/browser/renderer_host/browser_compositor_view_mac.h"
144 #include "content/browser/theme_helper_mac.h" 144 #include "content/browser/theme_helper_mac.h"
145 #include "ui/accelerated_widget_mac/window_resize_helper_mac.h" 145 #include "ui/accelerated_widget_mac/window_resize_helper_mac.h"
146 #endif 146 #endif
147 147
148 #if defined(USE_OZONE)
149 #include "ui/ozone/public/client_native_pixmap_factory_ozone.h"
150 #endif
151
152 #if defined(OS_WIN) 148 #if defined(OS_WIN)
153 #include <windows.h> 149 #include <windows.h>
154 #include <commctrl.h> 150 #include <commctrl.h>
155 #include <shellapi.h> 151 #include <shellapi.h>
156 152
157 #include "base/memory/memory_pressure_monitor_win.h" 153 #include "base/memory/memory_pressure_monitor_win.h"
158 #include "content/common/sandbox_win.h" 154 #include "content/common/sandbox_win.h"
159 #include "net/base/winsock_init.h" 155 #include "net/base/winsock_init.h"
160 #include "ui/base/l10n/l10n_util_win.h" 156 #include "ui/base/l10n/l10n_util_win.h"
161 #endif 157 #endif
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 #endif 760 #endif
765 761
766 #if defined(OS_MACOSX) 762 #if defined(OS_MACOSX)
767 if (BootstrapSandboxManager::ShouldEnable()) { 763 if (BootstrapSandboxManager::ShouldEnable()) {
768 TRACE_EVENT0("startup", 764 TRACE_EVENT0("startup",
769 "BrowserMainLoop::Subsystem:BootstrapSandbox"); 765 "BrowserMainLoop::Subsystem:BootstrapSandbox");
770 CHECK(BootstrapSandboxManager::GetInstance()); 766 CHECK(BootstrapSandboxManager::GetInstance());
771 } 767 }
772 #endif 768 #endif
773 769
774 #if defined(USE_OZONE)
775 client_native_pixmap_factory_ = ui::CreateClientNativePixmapFactoryOzone();
776 gfx::ClientNativePixmapFactory::SetInstance(
777 client_native_pixmap_factory_.get());
778 #endif
779
780 if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) { 770 if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) {
781 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MemoryObserver"); 771 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MemoryObserver");
782 memory_observer_.reset(new MemoryObserver()); 772 memory_observer_.reset(new MemoryObserver());
783 base::MessageLoop::current()->AddTaskObserver(memory_observer_.get()); 773 base::MessageLoop::current()->AddTaskObserver(memory_observer_.get());
784 } 774 }
785 775
786 if (parsed_command_line_.HasSwitch( 776 if (parsed_command_line_.HasSwitch(
787 switches::kEnableAggressiveDOMStorageFlushing)) { 777 switches::kEnableAggressiveDOMStorageFlushing)) {
788 TRACE_EVENT0("startup", 778 TRACE_EVENT0("startup",
789 "BrowserMainLoop::Subsystem:EnableAggressiveCommitDelay"); 779 "BrowserMainLoop::Subsystem:EnableAggressiveCommitDelay");
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1759 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), 1749 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE),
1760 MediaInternals::GetInstance()); 1750 MediaInternals::GetInstance());
1761 } 1751 }
1762 CHECK(audio_manager_); 1752 CHECK(audio_manager_);
1763 1753
1764 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); 1754 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get());
1765 CHECK(audio_system_); 1755 CHECK(audio_system_);
1766 } 1756 }
1767 1757
1768 } // namespace content 1758 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698