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