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 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 switches::kV, | 858 switches::kV, |
859 switches::kVideoThreads, | 859 switches::kVideoThreads, |
860 switches::kVModule, | 860 switches::kVModule, |
861 switches::kWebCoreLogChannels, | 861 switches::kWebCoreLogChannels, |
862 cc::switches::kBackgroundColorInsteadOfCheckerboard, | 862 cc::switches::kBackgroundColorInsteadOfCheckerboard, |
863 cc::switches::kDisableImplSidePainting, | 863 cc::switches::kDisableImplSidePainting, |
864 cc::switches::kDisableThreadedAnimation, | 864 cc::switches::kDisableThreadedAnimation, |
865 cc::switches::kEnableCompositorFrameMessage, | 865 cc::switches::kEnableCompositorFrameMessage, |
866 cc::switches::kEnableImplSidePainting, | 866 cc::switches::kEnableImplSidePainting, |
867 cc::switches::kEnablePartialSwap, | 867 cc::switches::kEnablePartialSwap, |
| 868 cc::switches::kEnablePredictionBenchmarking, |
868 cc::switches::kEnablePerTilePainting, | 869 cc::switches::kEnablePerTilePainting, |
869 cc::switches::kEnableRightAlignedScheduling, | 870 cc::switches::kEnableRightAlignedScheduling, |
870 cc::switches::kEnableTopControlsPositionCalculation, | 871 cc::switches::kEnableTopControlsPositionCalculation, |
871 cc::switches::kLowResolutionContentsScaleFactor, | 872 cc::switches::kLowResolutionContentsScaleFactor, |
872 cc::switches::kNumRasterThreads, | 873 cc::switches::kNumRasterThreads, |
873 cc::switches::kShowNonOccludingRects, | 874 cc::switches::kShowNonOccludingRects, |
874 cc::switches::kShowOccludingRects, | 875 cc::switches::kShowOccludingRects, |
875 cc::switches::kShowPropertyChangedRects, | 876 cc::switches::kShowPropertyChangedRects, |
876 cc::switches::kShowReplicaScreenSpaceRects, | 877 cc::switches::kShowReplicaScreenSpaceRects, |
877 cc::switches::kShowScreenSpaceRects, | 878 cc::switches::kShowScreenSpaceRects, |
878 cc::switches::kShowSurfaceDamageRects, | 879 cc::switches::kShowSurfaceDamageRects, |
879 cc::switches::kSlowDownRasterScaleFactor, | 880 cc::switches::kSlowDownRasterScaleFactor, |
880 cc::switches::kTopControlsHeight, | 881 cc::switches::kTopControlsHeight, |
881 cc::switches::kTopControlsHideThreshold, | 882 cc::switches::kTopControlsHideThreshold, |
882 cc::switches::kTopControlsShowThreshold, | 883 cc::switches::kTopControlsShowThreshold, |
883 cc::switches::kTraceAllRenderedFrames, | 884 cc::switches::kTraceAllRenderedFrames, |
884 cc::switches::kTraceOverdraw, | 885 cc::switches::kTraceOverdraw, |
885 cc::switches::kUseCheapnessEstimator, | 886 cc::switches::kUseCheapnessEstimator, |
| 887 cc::switches::kUseColorEstimator, |
886 cc::switches::kCompositeToMailbox, | 888 cc::switches::kCompositeToMailbox, |
887 }; | 889 }; |
888 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 890 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
889 arraysize(kSwitchNames)); | 891 arraysize(kSwitchNames)); |
890 | 892 |
891 // Disable databases in incognito mode. | 893 // Disable databases in incognito mode. |
892 if (GetBrowserContext()->IsOffTheRecord() && | 894 if (GetBrowserContext()->IsOffTheRecord() && |
893 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 895 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
894 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 896 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
895 #if defined(OS_ANDROID) | 897 #if defined(OS_ANDROID) |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1643 TRACE_EVENT0("renderer_host", | 1645 TRACE_EVENT0("renderer_host", |
1644 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1646 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1645 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1647 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1646 ack_params.sync_point = 0; | 1648 ack_params.sync_point = 0; |
1647 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1649 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1648 gpu_process_host_id, | 1650 gpu_process_host_id, |
1649 ack_params); | 1651 ack_params); |
1650 } | 1652 } |
1651 | 1653 |
1652 } // namespace content | 1654 } // namespace content |
OLD | NEW |