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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 switches::kUserAgent, | 897 switches::kUserAgent, |
898 switches::kV, | 898 switches::kV, |
899 switches::kVideoThreads, | 899 switches::kVideoThreads, |
900 switches::kVModule, | 900 switches::kVModule, |
901 switches::kWebCoreLogChannels, | 901 switches::kWebCoreLogChannels, |
902 // Please keep these in alphabetical order. Compositor switches here should | 902 // Please keep these in alphabetical order. Compositor switches here should |
903 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. | 903 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. |
904 cc::switches::kBackgroundColorInsteadOfCheckerboard, | 904 cc::switches::kBackgroundColorInsteadOfCheckerboard, |
905 cc::switches::kCompositeToMailbox, | 905 cc::switches::kCompositeToMailbox, |
906 cc::switches::kDisableCheapnessEstimator, | 906 cc::switches::kDisableCheapnessEstimator, |
| 907 cc::switches::kDisableColorEstimator, |
907 cc::switches::kDisableImplSidePainting, | 908 cc::switches::kDisableImplSidePainting, |
908 cc::switches::kDisableThreadedAnimation, | 909 cc::switches::kDisableThreadedAnimation, |
909 cc::switches::kEnableCompositorFrameMessage, | 910 cc::switches::kEnableCompositorFrameMessage, |
910 cc::switches::kEnableImplSidePainting, | 911 cc::switches::kEnableImplSidePainting, |
911 cc::switches::kEnablePartialSwap, | 912 cc::switches::kEnablePartialSwap, |
912 cc::switches::kEnablePerTilePainting, | 913 cc::switches::kEnablePerTilePainting, |
913 cc::switches::kEnablePredictionBenchmarking, | 914 cc::switches::kEnablePredictionBenchmarking, |
914 cc::switches::kEnableRightAlignedScheduling, | 915 cc::switches::kEnableRightAlignedScheduling, |
915 cc::switches::kEnableTopControlsPositionCalculation, | 916 cc::switches::kEnableTopControlsPositionCalculation, |
916 cc::switches::kLowResolutionContentsScaleFactor, | 917 cc::switches::kLowResolutionContentsScaleFactor, |
917 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, | 918 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, |
918 cc::switches::kNumRasterThreads, | 919 cc::switches::kNumRasterThreads, |
919 cc::switches::kMaxPrepaintTileDistance, | 920 cc::switches::kMaxPrepaintTileDistance, |
920 cc::switches::kMaxTilesForInterestArea, | 921 cc::switches::kMaxTilesForInterestArea, |
921 cc::switches::kShowCompositedLayerBorders, | 922 cc::switches::kShowCompositedLayerBorders, |
922 cc::switches::kShowCompositedLayerTree, | 923 cc::switches::kShowCompositedLayerTree, |
923 cc::switches::kShowFPSCounter, | 924 cc::switches::kShowFPSCounter, |
924 cc::switches::kShowNonOccludingRects, | 925 cc::switches::kShowNonOccludingRects, |
925 cc::switches::kShowOccludingRects, | 926 cc::switches::kShowOccludingRects, |
926 cc::switches::kShowPropertyChangedRects, | 927 cc::switches::kShowPropertyChangedRects, |
927 cc::switches::kShowReplicaScreenSpaceRects, | 928 cc::switches::kShowReplicaScreenSpaceRects, |
928 cc::switches::kShowScreenSpaceRects, | 929 cc::switches::kShowScreenSpaceRects, |
929 cc::switches::kShowSurfaceDamageRects, | 930 cc::switches::kShowSurfaceDamageRects, |
930 cc::switches::kSlowDownRasterScaleFactor, | 931 cc::switches::kSlowDownRasterScaleFactor, |
931 cc::switches::kTopControlsHeight, | 932 cc::switches::kTopControlsHeight, |
932 cc::switches::kTopControlsHideThreshold, | 933 cc::switches::kTopControlsHideThreshold, |
933 cc::switches::kTopControlsShowThreshold, | 934 cc::switches::kTopControlsShowThreshold, |
934 cc::switches::kTraceAllRenderedFrames, | 935 cc::switches::kTraceAllRenderedFrames, |
935 cc::switches::kTraceOverdraw, | 936 cc::switches::kTraceOverdraw |
936 cc::switches::kUseColorEstimator, | |
937 }; | 937 }; |
938 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 938 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
939 arraysize(kSwitchNames)); | 939 arraysize(kSwitchNames)); |
940 | 940 |
941 // Disable databases in incognito mode. | 941 // Disable databases in incognito mode. |
942 if (GetBrowserContext()->IsOffTheRecord() && | 942 if (GetBrowserContext()->IsOffTheRecord() && |
943 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 943 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
944 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 944 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
945 #if defined(OS_ANDROID) | 945 #if defined(OS_ANDROID) |
946 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); | 946 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 TRACE_EVENT0("renderer_host", | 1712 TRACE_EVENT0("renderer_host", |
1713 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1713 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1714 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1714 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1715 ack_params.sync_point = 0; | 1715 ack_params.sync_point = 0; |
1716 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1716 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1717 gpu_process_host_id, | 1717 gpu_process_host_id, |
1718 ack_params); | 1718 ack_params); |
1719 } | 1719 } |
1720 | 1720 |
1721 } // namespace content | 1721 } // namespace content |
OLD | NEW |