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