| 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { | 1011 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { |
| 1012 return storage_partition_impl_; | 1012 return storage_partition_impl_; |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 static void AppendCompositorCommandLineFlags(CommandLine* command_line) { | 1015 static void AppendCompositorCommandLineFlags(CommandLine* command_line) { |
| 1016 if (IsPinchVirtualViewportEnabled()) | 1016 if (IsPinchVirtualViewportEnabled()) |
| 1017 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport); | 1017 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport); |
| 1018 | 1018 |
| 1019 if (IsThreadedCompositingEnabled()) | |
| 1020 command_line->AppendSwitch(switches::kEnableThreadedCompositing); | |
| 1021 | |
| 1022 if (IsDelegatedRendererEnabled()) | 1019 if (IsDelegatedRendererEnabled()) |
| 1023 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); | 1020 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); |
| 1024 | 1021 |
| 1025 if (IsImplSidePaintingEnabled()) | 1022 if (IsImplSidePaintingEnabled()) |
| 1026 command_line->AppendSwitch(switches::kEnableImplSidePainting); | 1023 command_line->AppendSwitch(switches::kEnableImplSidePainting); |
| 1027 | 1024 |
| 1028 if (content::IsGpuRasterizationEnabled()) | 1025 if (content::IsGpuRasterizationEnabled()) |
| 1029 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1026 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
| 1030 | 1027 |
| 1031 if (content::IsForceGpuRasterizationEnabled()) | 1028 if (content::IsForceGpuRasterizationEnabled()) |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 switches::kDisableLayerSquashing, | 1110 switches::kDisableLayerSquashing, |
| 1114 switches::kDisableLocalStorage, | 1111 switches::kDisableLocalStorage, |
| 1115 switches::kDisableLogging, | 1112 switches::kDisableLogging, |
| 1116 switches::kDisableMediaSource, | 1113 switches::kDisableMediaSource, |
| 1117 switches::kDisableOverlayScrollbar, | 1114 switches::kDisableOverlayScrollbar, |
| 1118 switches::kDisablePinch, | 1115 switches::kDisablePinch, |
| 1119 switches::kDisablePrefixedEncryptedMedia, | 1116 switches::kDisablePrefixedEncryptedMedia, |
| 1120 switches::kDisableSeccompFilterSandbox, | 1117 switches::kDisableSeccompFilterSandbox, |
| 1121 switches::kDisableSessionStorage, | 1118 switches::kDisableSessionStorage, |
| 1122 switches::kDisableSharedWorkers, | 1119 switches::kDisableSharedWorkers, |
| 1120 switches::kDisableThreadedCompositing, |
| 1123 switches::kDisableTouchAdjustment, | 1121 switches::kDisableTouchAdjustment, |
| 1124 switches::kDisableTouchDragDrop, | 1122 switches::kDisableTouchDragDrop, |
| 1125 switches::kDisableTouchEditing, | 1123 switches::kDisableTouchEditing, |
| 1126 switches::kDisableZeroCopy, | 1124 switches::kDisableZeroCopy, |
| 1127 switches::kDomAutomationController, | 1125 switches::kDomAutomationController, |
| 1128 switches::kEnableAcceleratedFixedRootBackground, | 1126 switches::kEnableAcceleratedFixedRootBackground, |
| 1129 switches::kEnableAcceleratedOverflowScroll, | 1127 switches::kEnableAcceleratedOverflowScroll, |
| 1130 switches::kEnableBeginFrameScheduling, | 1128 switches::kEnableBeginFrameScheduling, |
| 1131 switches::kEnableBleedingEdgeRenderingFastPaths, | 1129 switches::kEnableBleedingEdgeRenderingFastPaths, |
| 1132 switches::kEnableCompositingForFixedPosition, | 1130 switches::kEnableCompositingForFixedPosition, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1154 switches::kEnablePinch, | 1152 switches::kEnablePinch, |
| 1155 switches::kEnablePreciseMemoryInfo, | 1153 switches::kEnablePreciseMemoryInfo, |
| 1156 switches::kEnablePreparsedJsCaching, | 1154 switches::kEnablePreparsedJsCaching, |
| 1157 switches::kEnableSeccompFilterSandbox, | 1155 switches::kEnableSeccompFilterSandbox, |
| 1158 switches::kEnableSkiaBenchmarking, | 1156 switches::kEnableSkiaBenchmarking, |
| 1159 switches::kEnableSmoothScrolling, | 1157 switches::kEnableSmoothScrolling, |
| 1160 switches::kEnableSpeechSynthesis, | 1158 switches::kEnableSpeechSynthesis, |
| 1161 switches::kEnableStatsTable, | 1159 switches::kEnableStatsTable, |
| 1162 switches::kEnableStrictSiteIsolation, | 1160 switches::kEnableStrictSiteIsolation, |
| 1163 switches::kEnableTargetedStyleRecalc, | 1161 switches::kEnableTargetedStyleRecalc, |
| 1162 switches::kEnableThreadedCompositing, |
| 1164 switches::kEnableTouchDragDrop, | 1163 switches::kEnableTouchDragDrop, |
| 1165 switches::kEnableTouchEditing, | 1164 switches::kEnableTouchEditing, |
| 1166 switches::kEnableViewport, | 1165 switches::kEnableViewport, |
| 1167 switches::kEnableViewportMeta, | 1166 switches::kEnableViewportMeta, |
| 1168 switches::kMainFrameResizesAreOrientationChanges, | |
| 1169 switches::kEnableVtune, | 1167 switches::kEnableVtune, |
| 1170 switches::kEnableWebAnimationsSVG, | 1168 switches::kEnableWebAnimationsSVG, |
| 1171 switches::kEnableWebGLDraftExtensions, | 1169 switches::kEnableWebGLDraftExtensions, |
| 1172 switches::kEnableWebGLImageChromium, | 1170 switches::kEnableWebGLImageChromium, |
| 1173 switches::kEnableWebMIDI, | 1171 switches::kEnableWebMIDI, |
| 1174 switches::kEnableZeroCopy, | 1172 switches::kEnableZeroCopy, |
| 1175 switches::kForceDeviceScaleFactor, | 1173 switches::kForceDeviceScaleFactor, |
| 1176 switches::kFullMemoryCrashReport, | 1174 switches::kFullMemoryCrashReport, |
| 1177 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 1175 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
| 1178 switches::kIPCConnectionTimeout, | 1176 switches::kIPCConnectionTimeout, |
| 1179 switches::kJavaScriptFlags, | 1177 switches::kJavaScriptFlags, |
| 1180 switches::kLoggingLevel, | 1178 switches::kLoggingLevel, |
| 1179 switches::kMainFrameResizesAreOrientationChanges, |
| 1181 switches::kMaxUntiledLayerWidth, | 1180 switches::kMaxUntiledLayerWidth, |
| 1182 switches::kMaxUntiledLayerHeight, | 1181 switches::kMaxUntiledLayerHeight, |
| 1183 switches::kMemoryMetrics, | 1182 switches::kMemoryMetrics, |
| 1184 switches::kNoReferrers, | 1183 switches::kNoReferrers, |
| 1185 switches::kNoSandbox, | 1184 switches::kNoSandbox, |
| 1186 switches::kNumRasterThreads, | 1185 switches::kNumRasterThreads, |
| 1187 switches::kPpapiInProcess, | 1186 switches::kPpapiInProcess, |
| 1188 switches::kProfilerTiming, | 1187 switches::kProfilerTiming, |
| 1189 switches::kReduceSecurityForTesting, | 1188 switches::kReduceSecurityForTesting, |
| 1190 switches::kRegisterPepperPlugins, | 1189 switches::kRegisterPepperPlugins, |
| (...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2362 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2361 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
| 2363 IPC::Message* reply, | 2362 IPC::Message* reply, |
| 2364 const gfx::GpuMemoryBufferHandle& handle) { | 2363 const gfx::GpuMemoryBufferHandle& handle) { |
| 2365 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2364 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2366 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2365 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
| 2367 handle); | 2366 handle); |
| 2368 Send(reply); | 2367 Send(reply); |
| 2369 } | 2368 } |
| 2370 | 2369 |
| 2371 } // namespace content | 2370 } // namespace content |
| OLD | NEW |