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