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