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

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

Issue 453063002: Only allow webrtc HW offload for H264 encode for extension process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use a content common switch instead. Created 6 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 | 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 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 cc::switches::kTopControlsHideThreshold, 1230 cc::switches::kTopControlsHideThreshold,
1231 cc::switches::kTopControlsShowThreshold, 1231 cc::switches::kTopControlsShowThreshold,
1232 #if defined(ENABLE_PLUGINS) 1232 #if defined(ENABLE_PLUGINS)
1233 switches::kEnablePepperTesting, 1233 switches::kEnablePepperTesting,
1234 #endif 1234 #endif
1235 #if defined(ENABLE_WEBRTC) 1235 #if defined(ENABLE_WEBRTC)
1236 switches::kDisableAudioTrackProcessing, 1236 switches::kDisableAudioTrackProcessing,
1237 switches::kDisableWebRtcHWDecoding, 1237 switches::kDisableWebRtcHWDecoding,
1238 switches::kDisableWebRtcHWEncoding, 1238 switches::kDisableWebRtcHWEncoding,
1239 switches::kEnableWebRtcHWVp8Encoding, 1239 switches::kEnableWebRtcHWVp8Encoding,
1240 switches::kEnableWebRtcHWH264Encoding,
1240 #endif 1241 #endif
1241 switches::kLowEndDeviceMode, 1242 switches::kLowEndDeviceMode,
1242 #if defined(OS_ANDROID) 1243 #if defined(OS_ANDROID)
1243 switches::kDisableGestureRequirementForMediaPlayback, 1244 switches::kDisableGestureRequirementForMediaPlayback,
1244 switches::kDisableWebRTC, 1245 switches::kDisableWebRTC,
1245 switches::kEnableSpeechRecognition, 1246 switches::kEnableSpeechRecognition,
1246 switches::kMediaDrmEnableNonCompositing, 1247 switches::kMediaDrmEnableNonCompositing,
1247 switches::kNetworkCountryIso, 1248 switches::kNetworkCountryIso,
1248 switches::kDisableWebAudio, 1249 switches::kDisableWebAudio,
1249 #endif 1250 #endif
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 } 2354 }
2354 2355
2355 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( 2356 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer(
2356 gfx::GpuMemoryBufferType type, 2357 gfx::GpuMemoryBufferType type,
2357 const gfx::GpuMemoryBufferId& id) { 2358 const gfx::GpuMemoryBufferId& id) {
2358 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2359 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2359 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); 2360 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle());
2360 } 2361 }
2361 2362
2362 } // namespace content 2363 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698