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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 switches::kUserAgent, | 846 switches::kUserAgent, |
847 switches::kV, | 847 switches::kV, |
848 switches::kVideoThreads, | 848 switches::kVideoThreads, |
849 switches::kVModule, | 849 switches::kVModule, |
850 switches::kWebCoreLogChannels, | 850 switches::kWebCoreLogChannels, |
851 switches::kWebIntentsInvocationEnabled, | 851 switches::kWebIntentsInvocationEnabled, |
852 cc::switches::kBackgroundColorInsteadOfCheckerboard, | 852 cc::switches::kBackgroundColorInsteadOfCheckerboard, |
853 cc::switches::kEnableCompositorFrameMessage, | 853 cc::switches::kEnableCompositorFrameMessage, |
854 cc::switches::kEnableImplSidePainting, | 854 cc::switches::kEnableImplSidePainting, |
855 cc::switches::kEnablePartialSwap, | 855 cc::switches::kEnablePartialSwap, |
| 856 cc::switches::kEnableTopControlsPositionCalculation, |
856 cc::switches::kNumRasterThreads, | 857 cc::switches::kNumRasterThreads, |
857 cc::switches::kShowPropertyChangedRects, | 858 cc::switches::kShowPropertyChangedRects, |
858 cc::switches::kShowSurfaceDamageRects, | 859 cc::switches::kShowSurfaceDamageRects, |
859 cc::switches::kShowScreenSpaceRects, | 860 cc::switches::kShowScreenSpaceRects, |
860 cc::switches::kShowReplicaScreenSpaceRects, | 861 cc::switches::kShowReplicaScreenSpaceRects, |
861 cc::switches::kShowNonOccludingRects, | 862 cc::switches::kShowNonOccludingRects, |
862 cc::switches::kShowOccludingRects, | 863 cc::switches::kShowOccludingRects, |
863 cc::switches::kTraceOverdraw, | 864 cc::switches::kTraceOverdraw, |
| 865 cc::switches::kTopControlsHeight, |
864 }; | 866 }; |
865 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 867 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
866 arraysize(kSwitchNames)); | 868 arraysize(kSwitchNames)); |
867 | 869 |
868 // Disable databases in incognito mode. | 870 // Disable databases in incognito mode. |
869 if (GetBrowserContext()->IsOffTheRecord() && | 871 if (GetBrowserContext()->IsOffTheRecord() && |
870 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 872 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
871 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 873 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
872 #if defined(OS_ANDROID) | 874 #if defined(OS_ANDROID) |
873 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); | 875 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 TRACE_EVENT0("renderer_host", | 1615 TRACE_EVENT0("renderer_host", |
1614 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1616 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1615 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1617 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1616 ack_params.sync_point = 0; | 1618 ack_params.sync_point = 0; |
1617 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1619 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1618 gpu_process_host_id, | 1620 gpu_process_host_id, |
1619 ack_params); | 1621 ack_params); |
1620 } | 1622 } |
1621 | 1623 |
1622 } // namespace content | 1624 } // namespace content |
OLD | NEW |