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

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

Issue 119493005: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Put low end device detection under the flag for all platforms except android. Created 6 years, 11 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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 switches::kDisableFiltersOverIPC, 976 switches::kDisableFiltersOverIPC,
977 switches::kDisableFullScreen, 977 switches::kDisableFullScreen,
978 switches::kDisableGeolocation, 978 switches::kDisableGeolocation,
979 switches::kDisableGpu, 979 switches::kDisableGpu,
980 switches::kDisableGpuCompositing, 980 switches::kDisableGpuCompositing,
981 switches::kDisableGpuVsync, 981 switches::kDisableGpuVsync,
982 switches::kDisableHistogramCustomizer, 982 switches::kDisableHistogramCustomizer,
983 switches::kDisableLayerSquashing, 983 switches::kDisableLayerSquashing,
984 switches::kDisableLocalStorage, 984 switches::kDisableLocalStorage,
985 switches::kDisableLogging, 985 switches::kDisableLogging,
986 switches::kDisableLowEndDeviceMode,
986 switches::kDisableOpusPlayback, 987 switches::kDisableOpusPlayback,
987 switches::kDisablePinch, 988 switches::kDisablePinch,
988 switches::kDisablePrefixedEncryptedMedia, 989 switches::kDisablePrefixedEncryptedMedia,
989 switches::kDisableSeccompFilterSandbox, 990 switches::kDisableSeccompFilterSandbox,
990 switches::kDisableSessionStorage, 991 switches::kDisableSessionStorage,
991 switches::kDisableSharedWorkers, 992 switches::kDisableSharedWorkers,
992 switches::kDisableSpeechInput, 993 switches::kDisableSpeechInput,
993 switches::kDisableThreadedCompositing, 994 switches::kDisableThreadedCompositing,
994 switches::kDisableTouchAdjustment, 995 switches::kDisableTouchAdjustment,
995 switches::kDisableTouchDragDrop, 996 switches::kDisableTouchDragDrop,
(...skipping 26 matching lines...) Expand all
1022 switches::kEnableGpuBenchmarking, 1023 switches::kEnableGpuBenchmarking,
1023 switches::kEnableGPUClientLogging, 1024 switches::kEnableGPUClientLogging,
1024 switches::kEnableGpuClientTracing, 1025 switches::kEnableGpuClientTracing,
1025 switches::kEnableGPUServiceLogging, 1026 switches::kEnableGPUServiceLogging,
1026 switches::kEnableHighDpiCompositingForFixedPosition, 1027 switches::kEnableHighDpiCompositingForFixedPosition,
1027 switches::kEnableHTMLImports, 1028 switches::kEnableHTMLImports,
1028 switches::kEnableInbandTextTracks, 1029 switches::kEnableInbandTextTracks,
1029 switches::kEnableInputModeAttribute, 1030 switches::kEnableInputModeAttribute,
1030 switches::kEnableLayerSquashing, 1031 switches::kEnableLayerSquashing,
1031 switches::kEnableLogging, 1032 switches::kEnableLogging,
1033 switches::kEnableLowEndDeviceMode,
1032 switches::kEnableMP3StreamParser, 1034 switches::kEnableMP3StreamParser,
1033 switches::kEnableMemoryBenchmarking, 1035 switches::kEnableMemoryBenchmarking,
1034 switches::kEnableOverlayFullscreenVideo, 1036 switches::kEnableOverlayFullscreenVideo,
1035 switches::kEnableOverlayScrollbars, 1037 switches::kEnableOverlayScrollbars,
1036 switches::kEnableOverscrollNotifications, 1038 switches::kEnableOverscrollNotifications,
1037 switches::kEnablePinch, 1039 switches::kEnablePinch,
1038 switches::kEnablePreparsedJsCaching, 1040 switches::kEnablePreparsedJsCaching,
1039 switches::kEnablePruneGpuCommandBuffers, 1041 switches::kEnablePruneGpuCommandBuffers,
1040 switches::kEnableRepaintAfterLayout, 1042 switches::kEnableRepaintAfterLayout,
1041 switches::kEnableServiceWorker, 1043 switches::kEnableServiceWorker,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 switches::kDisableWebRtcHWEncoding, 1137 switches::kDisableWebRtcHWEncoding,
1136 switches::kEnableWebRtcAecRecordings, 1138 switches::kEnableWebRtcAecRecordings,
1137 switches::kEnableWebRtcHWVp8Encoding, 1139 switches::kEnableWebRtcHWVp8Encoding,
1138 switches::kEnableWebRtcTcpServerSocket, 1140 switches::kEnableWebRtcTcpServerSocket,
1139 #endif 1141 #endif
1140 #if defined(GOOGLE_TV) 1142 #if defined(GOOGLE_TV)
1141 switches::kUseExternalVideoSurfaceThresholdInPixels, 1143 switches::kUseExternalVideoSurfaceThresholdInPixels,
1142 #endif 1144 #endif
1143 #if defined(OS_ANDROID) 1145 #if defined(OS_ANDROID)
1144 switches::kDisableGestureRequirementForMediaPlayback, 1146 switches::kDisableGestureRequirementForMediaPlayback,
1145 switches::kDisableLowEndDeviceMode,
1146 switches::kDisableWebRTC, 1147 switches::kDisableWebRTC,
1147 switches::kEnableLowEndDeviceMode,
1148 switches::kEnableSpeechRecognition, 1148 switches::kEnableSpeechRecognition,
1149 switches::kHideScrollbars, 1149 switches::kHideScrollbars,
1150 switches::kMediaDrmEnableNonCompositing, 1150 switches::kMediaDrmEnableNonCompositing,
1151 switches::kNetworkCountryIso, 1151 switches::kNetworkCountryIso,
1152 #endif 1152 #endif
1153 #if defined(OS_ANDROID) && defined(ARCH_CPU_X86) 1153 #if defined(OS_ANDROID) && defined(ARCH_CPU_X86)
1154 switches::kEnableWebAudio, 1154 switches::kEnableWebAudio,
1155 #else 1155 #else
1156 // Need to be able to disable webaudio on other platforms where it 1156 // Need to be able to disable webaudio on other platforms where it
1157 // is enabled by default. 1157 // is enabled by default.
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 return; 2026 return;
2027 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); 2027 Send(new MediaStreamMsg_EnableAecDump(file_for_transit));
2028 } 2028 }
2029 2029
2030 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { 2030 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() {
2031 Send(new MediaStreamMsg_DisableAecDump()); 2031 Send(new MediaStreamMsg_DisableAecDump());
2032 } 2032 }
2033 #endif 2033 #endif
2034 2034
2035 } // namespace content 2035 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698