Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1002 } | 1002 } |
| 1003 | 1003 |
| 1004 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { | 1004 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { |
| 1005 return storage_partition_impl_; | 1005 return storage_partition_impl_; |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 static void AppendCompositorCommandLineFlags(CommandLine* command_line) { | 1008 static void AppendCompositorCommandLineFlags(CommandLine* command_line) { |
| 1009 if (IsPinchVirtualViewportEnabled()) | 1009 if (IsPinchVirtualViewportEnabled()) |
| 1010 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport); | 1010 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport); |
| 1011 | 1011 |
| 1012 if (IsThreadedCompositingEnabled()) | |
| 1013 command_line->AppendSwitch(switches::kEnableThreadedCompositing); | |
| 1014 | |
| 1015 if (IsDelegatedRendererEnabled()) | 1012 if (IsDelegatedRendererEnabled()) |
| 1016 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); | 1013 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); |
| 1017 | 1014 |
| 1018 if (IsImplSidePaintingEnabled()) | 1015 if (IsImplSidePaintingEnabled()) |
| 1019 command_line->AppendSwitch(switches::kEnableImplSidePainting); | 1016 command_line->AppendSwitch(switches::kEnableImplSidePainting); |
| 1020 | 1017 |
| 1021 if (content::IsGpuRasterizationEnabled()) | 1018 if (content::IsGpuRasterizationEnabled()) |
| 1022 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1019 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
| 1023 | 1020 |
| 1024 if (content::IsForceGpuRasterizationEnabled()) | 1021 if (content::IsForceGpuRasterizationEnabled()) |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1107 switches::kDisableLocalStorage, | 1104 switches::kDisableLocalStorage, |
| 1108 switches::kDisableLogging, | 1105 switches::kDisableLogging, |
| 1109 switches::kDisableMediaSource, | 1106 switches::kDisableMediaSource, |
| 1110 switches::kDisableOverlayScrollbar, | 1107 switches::kDisableOverlayScrollbar, |
| 1111 switches::kDisablePinch, | 1108 switches::kDisablePinch, |
| 1112 switches::kDisablePrefixedEncryptedMedia, | 1109 switches::kDisablePrefixedEncryptedMedia, |
| 1113 switches::kDisableRepaintAfterLayout, | 1110 switches::kDisableRepaintAfterLayout, |
| 1114 switches::kDisableSeccompFilterSandbox, | 1111 switches::kDisableSeccompFilterSandbox, |
| 1115 switches::kDisableSessionStorage, | 1112 switches::kDisableSessionStorage, |
| 1116 switches::kDisableSharedWorkers, | 1113 switches::kDisableSharedWorkers, |
| 1114 switches::kDisableThreadedCompositing, | |
|
piman
2014/06/13 20:55:19
Is there a way to explicitly give this flag to the
danakj
2014/06/13 20:57:28
Uhmmm, idk! Hmm maybe something like EnableRendere
danakj
2014/06/13 21:46:35
Hm, I could wire it differently in the renderer/ch
| |
| 1117 switches::kDisableTouchAdjustment, | 1115 switches::kDisableTouchAdjustment, |
| 1118 switches::kDisableTouchDragDrop, | 1116 switches::kDisableTouchDragDrop, |
| 1119 switches::kDisableTouchEditing, | 1117 switches::kDisableTouchEditing, |
| 1120 switches::kDisableUniversalAcceleratedOverflowScroll, | 1118 switches::kDisableUniversalAcceleratedOverflowScroll, |
| 1121 switches::kDisableZeroCopy, | 1119 switches::kDisableZeroCopy, |
| 1122 switches::kDomAutomationController, | 1120 switches::kDomAutomationController, |
| 1123 switches::kEnableAcceleratedFixedRootBackground, | 1121 switches::kEnableAcceleratedFixedRootBackground, |
| 1124 switches::kEnableAcceleratedOverflowScroll, | 1122 switches::kEnableAcceleratedOverflowScroll, |
| 1125 switches::kEnableBeginFrameScheduling, | 1123 switches::kEnableBeginFrameScheduling, |
| 1126 switches::kEnableBleedingEdgeRenderingFastPaths, | 1124 switches::kEnableBleedingEdgeRenderingFastPaths, |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 1150 switches::kEnablePreciseMemoryInfo, | 1148 switches::kEnablePreciseMemoryInfo, |
| 1151 switches::kEnablePreparsedJsCaching, | 1149 switches::kEnablePreparsedJsCaching, |
| 1152 switches::kEnableRepaintAfterLayout, | 1150 switches::kEnableRepaintAfterLayout, |
| 1153 switches::kEnableSeccompFilterSandbox, | 1151 switches::kEnableSeccompFilterSandbox, |
| 1154 switches::kEnableServiceWorker, | 1152 switches::kEnableServiceWorker, |
| 1155 switches::kEnableSkiaBenchmarking, | 1153 switches::kEnableSkiaBenchmarking, |
| 1156 switches::kEnableSpeechSynthesis, | 1154 switches::kEnableSpeechSynthesis, |
| 1157 switches::kEnableStatsTable, | 1155 switches::kEnableStatsTable, |
| 1158 switches::kEnableStrictSiteIsolation, | 1156 switches::kEnableStrictSiteIsolation, |
| 1159 switches::kEnableTargetedStyleRecalc, | 1157 switches::kEnableTargetedStyleRecalc, |
| 1160 switches::kEnableUniversalAcceleratedOverflowScroll, | |
| 1161 switches::kEnableTouchDragDrop, | 1158 switches::kEnableTouchDragDrop, |
| 1162 switches::kEnableTouchEditing, | 1159 switches::kEnableTouchEditing, |
| 1160 switches::kEnableUniversalAcceleratedOverflowScroll, | |
| 1163 switches::kEnableViewport, | 1161 switches::kEnableViewport, |
| 1164 switches::kEnableViewportMeta, | 1162 switches::kEnableViewportMeta, |
| 1165 switches::kMainFrameResizesAreOrientationChanges, | |
| 1166 switches::kEnableVtune, | 1163 switches::kEnableVtune, |
| 1167 switches::kEnableWebAnimationsSVG, | 1164 switches::kEnableWebAnimationsSVG, |
| 1168 switches::kEnableWebGLDraftExtensions, | 1165 switches::kEnableWebGLDraftExtensions, |
| 1169 switches::kEnableWebGLImageChromium, | 1166 switches::kEnableWebGLImageChromium, |
| 1170 switches::kEnableWebMIDI, | 1167 switches::kEnableWebMIDI, |
| 1171 switches::kEnableZeroCopy, | 1168 switches::kEnableZeroCopy, |
| 1172 switches::kForceDeviceScaleFactor, | 1169 switches::kForceDeviceScaleFactor, |
| 1173 switches::kFullMemoryCrashReport, | 1170 switches::kFullMemoryCrashReport, |
| 1174 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 1171 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
| 1175 switches::kJavaScriptFlags, | 1172 switches::kJavaScriptFlags, |
| 1176 switches::kLoggingLevel, | 1173 switches::kLoggingLevel, |
| 1174 switches::kMainFrameResizesAreOrientationChanges, | |
| 1177 switches::kMaxUntiledLayerWidth, | 1175 switches::kMaxUntiledLayerWidth, |
| 1178 switches::kMaxUntiledLayerHeight, | 1176 switches::kMaxUntiledLayerHeight, |
| 1179 switches::kMemoryMetrics, | 1177 switches::kMemoryMetrics, |
| 1180 switches::kNoReferrers, | 1178 switches::kNoReferrers, |
| 1181 switches::kNoSandbox, | 1179 switches::kNoSandbox, |
| 1182 switches::kNumRasterThreads, | 1180 switches::kNumRasterThreads, |
| 1183 switches::kPpapiInProcess, | 1181 switches::kPpapiInProcess, |
| 1184 switches::kProfilerTiming, | 1182 switches::kProfilerTiming, |
| 1185 switches::kReduceSecurityForTesting, | 1183 switches::kReduceSecurityForTesting, |
| 1186 switches::kRegisterPepperPlugins, | 1184 switches::kRegisterPepperPlugins, |
| (...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2302 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2300 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
| 2303 IPC::Message* reply, | 2301 IPC::Message* reply, |
| 2304 const gfx::GpuMemoryBufferHandle& handle) { | 2302 const gfx::GpuMemoryBufferHandle& handle) { |
| 2305 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2303 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2306 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2304 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
| 2307 handle); | 2305 handle); |
| 2308 Send(reply); | 2306 Send(reply); |
| 2309 } | 2307 } |
| 2310 | 2308 |
| 2311 } // namespace content | 2309 } // namespace content |
| OLD | NEW |