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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
894 cc::switches::kShowSurfaceDamageRects, | 894 cc::switches::kShowSurfaceDamageRects, |
895 cc::switches::kSlowDownRasterScaleFactor, | 895 cc::switches::kSlowDownRasterScaleFactor, |
896 cc::switches::kTopControlsHeight, | 896 cc::switches::kTopControlsHeight, |
897 cc::switches::kTopControlsHideThreshold, | 897 cc::switches::kTopControlsHideThreshold, |
898 cc::switches::kTopControlsShowThreshold, | 898 cc::switches::kTopControlsShowThreshold, |
899 cc::switches::kTraceAllRenderedFrames, | 899 cc::switches::kTraceAllRenderedFrames, |
900 cc::switches::kTraceOverdraw, | 900 cc::switches::kTraceOverdraw, |
901 cc::switches::kUseCheapnessEstimator, | 901 cc::switches::kUseCheapnessEstimator, |
902 cc::switches::kUseColorEstimator, | 902 cc::switches::kUseColorEstimator, |
903 cc::switches::kCompositeToMailbox, | 903 cc::switches::kCompositeToMailbox, |
904 cc::switches::kEnableVsyncNotification, | |
danakj
2013/03/20 18:25:33
alphabetical order
add this to chrome/browser/chr
mkosiba (inactive)
2013/03/21 12:02:11
Done.
| |
904 }; | 905 }; |
905 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 906 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
906 arraysize(kSwitchNames)); | 907 arraysize(kSwitchNames)); |
907 | 908 |
908 // Disable databases in incognito mode. | 909 // Disable databases in incognito mode. |
909 if (GetBrowserContext()->IsOffTheRecord() && | 910 if (GetBrowserContext()->IsOffTheRecord() && |
910 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 911 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
911 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 912 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
912 #if defined(OS_ANDROID) | 913 #if defined(OS_ANDROID) |
913 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); | 914 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1679 TRACE_EVENT0("renderer_host", | 1680 TRACE_EVENT0("renderer_host", |
1680 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1681 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1681 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1682 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1682 ack_params.sync_point = 0; | 1683 ack_params.sync_point = 0; |
1683 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1684 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1684 gpu_process_host_id, | 1685 gpu_process_host_id, |
1685 ack_params); | 1686 ack_params); |
1686 } | 1687 } |
1687 | 1688 |
1688 } // namespace content | 1689 } // namespace content |
OLD | NEW |