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

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

Issue 258663002: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix builds. 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
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 #if defined(ENABLE_PLUGINS) 1230 #if defined(ENABLE_PLUGINS)
1231 switches::kEnablePepperTesting, 1231 switches::kEnablePepperTesting,
1232 #endif 1232 #endif
1233 #if defined(ENABLE_WEBRTC) 1233 #if defined(ENABLE_WEBRTC)
1234 switches::kDisableAudioTrackProcessing, 1234 switches::kDisableAudioTrackProcessing,
1235 switches::kDisableDeviceEnumeration, 1235 switches::kDisableDeviceEnumeration,
1236 switches::kDisableWebRtcHWDecoding, 1236 switches::kDisableWebRtcHWDecoding,
1237 switches::kDisableWebRtcHWEncoding, 1237 switches::kDisableWebRtcHWEncoding,
1238 switches::kEnableWebRtcHWVp8Encoding, 1238 switches::kEnableWebRtcHWVp8Encoding,
1239 #endif 1239 #endif
1240 switches::kLowEndDeviceMode,
1240 #if defined(OS_ANDROID) 1241 #if defined(OS_ANDROID)
1241 switches::kDisableGestureRequirementForMediaPlayback, 1242 switches::kDisableGestureRequirementForMediaPlayback,
1242 switches::kDisableLowEndDeviceMode,
1243 switches::kDisableWebRTC, 1243 switches::kDisableWebRTC,
1244 switches::kEnableLowEndDeviceMode,
1245 switches::kEnableSpeechRecognition, 1244 switches::kEnableSpeechRecognition,
1246 switches::kMediaDrmEnableNonCompositing, 1245 switches::kMediaDrmEnableNonCompositing,
1247 switches::kNetworkCountryIso, 1246 switches::kNetworkCountryIso,
1248 switches::kDisableWebAudio, 1247 switches::kDisableWebAudio,
1249 #endif 1248 #endif
1250 #if defined(OS_MACOSX) 1249 #if defined(OS_MACOSX)
1251 // Allow this to be set when invoking the browser and relayed along. 1250 // Allow this to be set when invoking the browser and relayed along.
1252 switches::kEnableSandboxLogging, 1251 switches::kEnableSandboxLogging,
1253 #endif 1252 #endif
1254 #if defined(OS_WIN) 1253 #if defined(OS_WIN)
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
2302 void RenderProcessHostImpl::GpuMemoryBufferAllocated( 2301 void RenderProcessHostImpl::GpuMemoryBufferAllocated(
2303 IPC::Message* reply, 2302 IPC::Message* reply,
2304 const gfx::GpuMemoryBufferHandle& handle) { 2303 const gfx::GpuMemoryBufferHandle& handle) {
2305 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2304 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2306 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 2305 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
2307 handle); 2306 handle);
2308 Send(reply); 2307 Send(reply);
2309 } 2308 }
2310 2309
2311 } // namespace content 2310 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698