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

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

Issue 333253002: Add VaapiVideoEncodeAccelerator for HW-accelerated video encode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 // 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 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 switches::kDisableWebAudio, 1246 switches::kDisableWebAudio,
1247 #endif 1247 #endif
1248 #if defined(OS_MACOSX) 1248 #if defined(OS_MACOSX)
1249 // Allow this to be set when invoking the browser and relayed along. 1249 // Allow this to be set when invoking the browser and relayed along.
1250 switches::kEnableSandboxLogging, 1250 switches::kEnableSandboxLogging,
1251 #endif 1251 #endif
1252 #if defined(OS_WIN) 1252 #if defined(OS_WIN)
1253 switches::kDisableDirectWrite, 1253 switches::kDisableDirectWrite,
1254 switches::kEnableHighResolutionTime, 1254 switches::kEnableHighResolutionTime,
1255 #endif 1255 #endif
1256 #if defined(OS_CHROMEOS)
1257 switches::kEnableVaapiAcceleratedVideoEncode,
1258 #endif
1256 }; 1259 };
1257 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 1260 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
1258 arraysize(kSwitchNames)); 1261 arraysize(kSwitchNames));
1259 1262
1260 if (browser_cmd.HasSwitch(switches::kTraceStartup) && 1263 if (browser_cmd.HasSwitch(switches::kTraceStartup) &&
1261 BrowserMainLoop::GetInstance()->is_tracing_startup()) { 1264 BrowserMainLoop::GetInstance()->is_tracing_startup()) {
1262 // Pass kTraceStartup switch to renderer only if startup tracing has not 1265 // Pass kTraceStartup switch to renderer only if startup tracing has not
1263 // finished. 1266 // finished.
1264 renderer_cmd->AppendSwitchASCII( 1267 renderer_cmd->AppendSwitchASCII(
1265 switches::kTraceStartup, 1268 switches::kTraceStartup,
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 void RenderProcessHostImpl::GpuMemoryBufferAllocated( 2303 void RenderProcessHostImpl::GpuMemoryBufferAllocated(
2301 IPC::Message* reply, 2304 IPC::Message* reply,
2302 const gfx::GpuMemoryBufferHandle& handle) { 2305 const gfx::GpuMemoryBufferHandle& handle) {
2303 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2306 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2304 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 2307 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
2305 handle); 2308 handle);
2306 Send(reply); 2309 Send(reply);
2307 } 2310 }
2308 2311
2309 } // namespace content 2312 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698