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

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

Issue 2097533005: Set Chrome command buffer to be the default GPU command buffer (was mojo command buffer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added #else Created 4 years, 5 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 | « components/mus/surfaces/surfaces_context_provider.cc ('k') | no next file » | 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 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 switches::kDisableVaapiAcceleratedVideoEncode, 1536 switches::kDisableVaapiAcceleratedVideoEncode,
1537 #endif 1537 #endif
1538 #if defined(MOJO_SHELL_CLIENT) 1538 #if defined(MOJO_SHELL_CLIENT)
1539 switches::kUseMusInRenderer, 1539 switches::kUseMusInRenderer,
1540 #endif 1540 #endif
1541 #if defined(ENABLE_IPC_FUZZER) 1541 #if defined(ENABLE_IPC_FUZZER)
1542 switches::kIpcDumpDirectory, 1542 switches::kIpcDumpDirectory,
1543 switches::kIpcFuzzerTestcase, 1543 switches::kIpcFuzzerTestcase,
1544 #endif 1544 #endif
1545 #if defined(MOJO_RUNNER_CLIENT) 1545 #if defined(MOJO_RUNNER_CLIENT)
1546 mus::switches::kUseChromeGpuCommandBufferInMus, 1546 mus::switches::kUseMojoGpuCommandBufferInMus,
1547 #endif 1547 #endif
1548 }; 1548 };
1549 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 1549 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
1550 arraysize(kSwitchNames)); 1550 arraysize(kSwitchNames));
1551 1551
1552 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd); 1552 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd);
1553 1553
1554 if (browser_cmd.HasSwitch(switches::kTraceStartup) && 1554 if (browser_cmd.HasSwitch(switches::kTraceStartup) &&
1555 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) { 1555 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) {
1556 // Pass kTraceStartup switch to renderer only if startup tracing has not 1556 // Pass kTraceStartup switch to renderer only if startup tracing has not
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2814 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2815 2815
2816 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2816 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2817 // enough information here so that we can determine what the bad message was. 2817 // enough information here so that we can determine what the bad message was.
2818 base::debug::Alias(&error); 2818 base::debug::Alias(&error);
2819 bad_message::ReceivedBadMessage(process.get(), 2819 bad_message::ReceivedBadMessage(process.get(),
2820 bad_message::RPH_MOJO_PROCESS_ERROR); 2820 bad_message::RPH_MOJO_PROCESS_ERROR);
2821 } 2821 }
2822 2822
2823 } // namespace content 2823 } // namespace content
OLDNEW
« no previous file with comments | « components/mus/surfaces/surfaces_context_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698