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

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

Issue 2803523002: Always create ClientNativePixmapFactory in chrome --mash (Closed)
Patch Set: better location for pixmap factory init 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') | ui/aura/env.cc » ('J')
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #if defined(OS_MACOSX) 137 #if defined(OS_MACOSX)
138 #include "base/memory/memory_pressure_monitor_mac.h" 138 #include "base/memory/memory_pressure_monitor_mac.h"
139 #include "content/browser/bootstrap_sandbox_manager_mac.h" 139 #include "content/browser/bootstrap_sandbox_manager_mac.h"
140 #include "content/browser/cocoa/system_hotkey_helper_mac.h" 140 #include "content/browser/cocoa/system_hotkey_helper_mac.h"
141 #include "content/browser/mach_broker_mac.h" 141 #include "content/browser/mach_broker_mac.h"
142 #include "content/browser/renderer_host/browser_compositor_view_mac.h" 142 #include "content/browser/renderer_host/browser_compositor_view_mac.h"
143 #include "content/browser/theme_helper_mac.h" 143 #include "content/browser/theme_helper_mac.h"
144 #include "ui/accelerated_widget_mac/window_resize_helper_mac.h" 144 #include "ui/accelerated_widget_mac/window_resize_helper_mac.h"
145 #endif 145 #endif
146 146
147 #if defined(USE_OZONE)
148 #include "ui/ozone/public/client_native_pixmap_factory_ozone.h"
149 #endif
150
151 #if defined(OS_WIN) 147 #if defined(OS_WIN)
152 #include <windows.h> 148 #include <windows.h>
153 #include <commctrl.h> 149 #include <commctrl.h>
154 #include <shellapi.h> 150 #include <shellapi.h>
155 151
156 #include "base/memory/memory_pressure_monitor_win.h" 152 #include "base/memory/memory_pressure_monitor_win.h"
157 #include "content/common/sandbox_win.h" 153 #include "content/common/sandbox_win.h"
158 #include "net/base/winsock_init.h" 154 #include "net/base/winsock_init.h"
159 #include "ui/base/l10n/l10n_util_win.h" 155 #include "ui/base/l10n/l10n_util_win.h"
160 #endif 156 #endif
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 #endif 775 #endif
780 776
781 #if defined(OS_MACOSX) 777 #if defined(OS_MACOSX)
782 if (BootstrapSandboxManager::ShouldEnable()) { 778 if (BootstrapSandboxManager::ShouldEnable()) {
783 TRACE_EVENT0("startup", 779 TRACE_EVENT0("startup",
784 "BrowserMainLoop::Subsystem:BootstrapSandbox"); 780 "BrowserMainLoop::Subsystem:BootstrapSandbox");
785 CHECK(BootstrapSandboxManager::GetInstance()); 781 CHECK(BootstrapSandboxManager::GetInstance());
786 } 782 }
787 #endif 783 #endif
788 784
789 #if defined(USE_OZONE)
790 client_native_pixmap_factory_ = ui::CreateClientNativePixmapFactoryOzone();
791 gfx::ClientNativePixmapFactory::SetInstance(
792 client_native_pixmap_factory_.get());
793 #endif
794
795 if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) { 785 if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) {
796 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MemoryObserver"); 786 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MemoryObserver");
797 memory_observer_.reset(new MemoryObserver()); 787 memory_observer_.reset(new MemoryObserver());
798 base::MessageLoop::current()->AddTaskObserver(memory_observer_.get()); 788 base::MessageLoop::current()->AddTaskObserver(memory_observer_.get());
799 } 789 }
800 790
801 if (parsed_command_line_.HasSwitch( 791 if (parsed_command_line_.HasSwitch(
802 switches::kEnableAggressiveDOMStorageFlushing)) { 792 switches::kEnableAggressiveDOMStorageFlushing)) {
803 TRACE_EVENT0("startup", 793 TRACE_EVENT0("startup",
804 "BrowserMainLoop::Subsystem:EnableAggressiveCommitDelay"); 794 "BrowserMainLoop::Subsystem:EnableAggressiveCommitDelay");
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), 1762 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE),
1773 MediaInternals::GetInstance()); 1763 MediaInternals::GetInstance());
1774 } 1764 }
1775 CHECK(audio_manager_); 1765 CHECK(audio_manager_);
1776 1766
1777 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); 1767 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get());
1778 CHECK(audio_system_); 1768 CHECK(audio_system_);
1779 } 1769 }
1780 1770
1781 } // namespace content 1771 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | ui/aura/env.h » ('j') | ui/aura/env.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698