| 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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 cc::switches::kShowPropertyChangedRects, | 966 cc::switches::kShowPropertyChangedRects, |
| 967 cc::switches::kShowReplicaScreenSpaceRects, | 967 cc::switches::kShowReplicaScreenSpaceRects, |
| 968 cc::switches::kShowScreenSpaceRects, | 968 cc::switches::kShowScreenSpaceRects, |
| 969 cc::switches::kShowSurfaceDamageRects, | 969 cc::switches::kShowSurfaceDamageRects, |
| 970 cc::switches::kSlowDownRasterScaleFactor, | 970 cc::switches::kSlowDownRasterScaleFactor, |
| 971 cc::switches::kStrictLayerPropertyChangeChecking, | 971 cc::switches::kStrictLayerPropertyChangeChecking, |
| 972 cc::switches::kTopControlsHeight, | 972 cc::switches::kTopControlsHeight, |
| 973 cc::switches::kTopControlsHideThreshold, | 973 cc::switches::kTopControlsHideThreshold, |
| 974 cc::switches::kTopControlsShowThreshold, | 974 cc::switches::kTopControlsShowThreshold, |
| 975 cc::switches::kTraceOverdraw, | 975 cc::switches::kTraceOverdraw, |
| 976 cc::switches::kUseGpuMemoryBuffers, |
| 976 }; | 977 }; |
| 977 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 978 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 978 arraysize(kSwitchNames)); | 979 arraysize(kSwitchNames)); |
| 979 | 980 |
| 980 // Disable databases in incognito mode. | 981 // Disable databases in incognito mode. |
| 981 if (GetBrowserContext()->IsOffTheRecord() && | 982 if (GetBrowserContext()->IsOffTheRecord() && |
| 982 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 983 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
| 983 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 984 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
| 984 #if defined(OS_ANDROID) | 985 #if defined(OS_ANDROID) |
| 985 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); | 986 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 TRACE_EVENT0("renderer_host", | 1757 TRACE_EVENT0("renderer_host", |
| 1757 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1758 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1758 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1759 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1759 ack_params.sync_point = 0; | 1760 ack_params.sync_point = 0; |
| 1760 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1761 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1761 gpu_process_host_id, | 1762 gpu_process_host_id, |
| 1762 ack_params); | 1763 ack_params); |
| 1763 } | 1764 } |
| 1764 | 1765 |
| 1765 } // namespace content | 1766 } // namespace content |
| OLD | NEW |