| 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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 switches::kUserAgent, | 837 switches::kUserAgent, |
| 838 switches::kV, | 838 switches::kV, |
| 839 switches::kVideoThreads, | 839 switches::kVideoThreads, |
| 840 switches::kVModule, | 840 switches::kVModule, |
| 841 switches::kWebCoreLogChannels, | 841 switches::kWebCoreLogChannels, |
| 842 switches::kWebIntentsInvocationEnabled, | 842 switches::kWebIntentsInvocationEnabled, |
| 843 cc::switches::kBackgroundColorInsteadOfCheckerboard, | 843 cc::switches::kBackgroundColorInsteadOfCheckerboard, |
| 844 cc::switches::kEnableCompositorFrameMessage, | 844 cc::switches::kEnableCompositorFrameMessage, |
| 845 cc::switches::kEnableImplSidePainting, | 845 cc::switches::kEnableImplSidePainting, |
| 846 cc::switches::kEnablePartialSwap, | 846 cc::switches::kEnablePartialSwap, |
| 847 cc::switches::kEnableTopControlsPositionCalculation, |
| 847 cc::switches::kNumRasterThreads, | 848 cc::switches::kNumRasterThreads, |
| 848 cc::switches::kShowPropertyChangedRects, | 849 cc::switches::kShowPropertyChangedRects, |
| 849 cc::switches::kShowSurfaceDamageRects, | 850 cc::switches::kShowSurfaceDamageRects, |
| 850 cc::switches::kShowScreenSpaceRects, | 851 cc::switches::kShowScreenSpaceRects, |
| 851 cc::switches::kShowReplicaScreenSpaceRects, | 852 cc::switches::kShowReplicaScreenSpaceRects, |
| 852 cc::switches::kShowNonOccludingRects, | 853 cc::switches::kShowNonOccludingRects, |
| 853 cc::switches::kShowOccludingRects, | 854 cc::switches::kShowOccludingRects, |
| 854 cc::switches::kTraceOverdraw, | 855 cc::switches::kTraceOverdraw, |
| 856 cc::switches::kTopControlsHeight, |
| 855 }; | 857 }; |
| 856 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 858 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 857 arraysize(kSwitchNames)); | 859 arraysize(kSwitchNames)); |
| 858 | 860 |
| 859 // Disable databases in incognito mode. | 861 // Disable databases in incognito mode. |
| 860 if (GetBrowserContext()->IsOffTheRecord() && | 862 if (GetBrowserContext()->IsOffTheRecord() && |
| 861 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 863 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
| 862 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 864 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
| 863 #if defined(OS_ANDROID) | 865 #if defined(OS_ANDROID) |
| 864 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); | 866 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1599 TRACE_EVENT0("renderer_host", | 1601 TRACE_EVENT0("renderer_host", |
| 1600 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1602 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1601 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1603 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1602 ack_params.sync_point = 0; | 1604 ack_params.sync_point = 0; |
| 1603 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1605 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1604 gpu_process_host_id, | 1606 gpu_process_host_id, |
| 1605 ack_params); | 1607 ack_params); |
| 1606 } | 1608 } |
| 1607 | 1609 |
| 1608 } // namespace content | 1610 } // namespace content |
| OLD | NEW |