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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2176303002: services/ui: Remove deprecated gpu code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 years, 4 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 | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | services/ui/BUILD.gn » ('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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 #endif 228 #endif
229 229
230 #if defined(ENABLE_WEBRTC) 230 #if defined(ENABLE_WEBRTC)
231 #include "content/browser/media/webrtc/webrtc_internals.h" 231 #include "content/browser/media/webrtc/webrtc_internals.h"
232 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" 232 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h"
233 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 233 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
234 #include "content/common/media/aec_dump_messages.h" 234 #include "content/common/media/aec_dump_messages.h"
235 #include "content/common/media/media_stream_messages.h" 235 #include "content/common/media/media_stream_messages.h"
236 #endif 236 #endif
237 237
238 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
239 #include "services/ui/common/switches.h" // nogncheck
240 #endif
241
242 #if defined(USE_MINIKIN_HYPHENATION) 238 #if defined(USE_MINIKIN_HYPHENATION)
243 #include "content/browser/hyphenation/hyphenation_impl.h" 239 #include "content/browser/hyphenation/hyphenation_impl.h"
244 #endif 240 #endif
245 241
246 #if defined(OS_WIN) 242 #if defined(OS_WIN)
247 #define IntToStringType base::IntToString16 243 #define IntToStringType base::IntToString16
248 #else 244 #else
249 #define IntToStringType base::IntToString 245 #define IntToStringType base::IntToString
250 #endif 246 #endif
251 247
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 #endif 1570 #endif
1575 #if defined(OS_CHROMEOS) 1571 #if defined(OS_CHROMEOS)
1576 switches::kDisableVaapiAcceleratedVideoEncode, 1572 switches::kDisableVaapiAcceleratedVideoEncode,
1577 #endif 1573 #endif
1578 #if defined(ENABLE_IPC_FUZZER) 1574 #if defined(ENABLE_IPC_FUZZER)
1579 switches::kIpcDumpDirectory, 1575 switches::kIpcDumpDirectory,
1580 switches::kIpcFuzzerTestcase, 1576 switches::kIpcFuzzerTestcase,
1581 #endif 1577 #endif
1582 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) 1578 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
1583 switches::kUseMusInRenderer, 1579 switches::kUseMusInRenderer,
1584 ui::switches::kUseMojoGpuCommandBufferInMus,
1585 #endif 1580 #endif
1586 }; 1581 };
1587 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 1582 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
1588 arraysize(kSwitchNames)); 1583 arraysize(kSwitchNames));
1589 1584
1590 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd); 1585 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd);
1591 1586
1592 if (browser_cmd.HasSwitch(switches::kTraceStartup) && 1587 if (browser_cmd.HasSwitch(switches::kTraceStartup) &&
1593 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) { 1588 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) {
1594 // Pass kTraceStartup switch to renderer only if startup tracing has not 1589 // Pass kTraceStartup switch to renderer only if startup tracing has not
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2758 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2764 2759
2765 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2760 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2766 // enough information here so that we can determine what the bad message was. 2761 // enough information here so that we can determine what the bad message was.
2767 base::debug::Alias(&error); 2762 base::debug::Alias(&error);
2768 bad_message::ReceivedBadMessage(process.get(), 2763 bad_message::ReceivedBadMessage(process.get(),
2769 bad_message::RPH_MOJO_PROCESS_ERROR); 2764 bad_message::RPH_MOJO_PROCESS_ERROR);
2770 } 2765 }
2771 2766
2772 } // namespace content 2767 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | services/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698