| 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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 cc::switches::kEnableTopControlsPositionCalculation, | 856 cc::switches::kEnableTopControlsPositionCalculation, |
| 857 cc::switches::kNumRasterThreads, | 857 cc::switches::kNumRasterThreads, |
| 858 cc::switches::kShowPropertyChangedRects, | 858 cc::switches::kShowPropertyChangedRects, |
| 859 cc::switches::kShowSurfaceDamageRects, | 859 cc::switches::kShowSurfaceDamageRects, |
| 860 cc::switches::kShowScreenSpaceRects, | 860 cc::switches::kShowScreenSpaceRects, |
| 861 cc::switches::kShowReplicaScreenSpaceRects, | 861 cc::switches::kShowReplicaScreenSpaceRects, |
| 862 cc::switches::kShowNonOccludingRects, | 862 cc::switches::kShowNonOccludingRects, |
| 863 cc::switches::kShowOccludingRects, | 863 cc::switches::kShowOccludingRects, |
| 864 cc::switches::kTraceOverdraw, | 864 cc::switches::kTraceOverdraw, |
| 865 cc::switches::kTopControlsHeight, | 865 cc::switches::kTopControlsHeight, |
| 866 cc::switches::kTopControlsShowThreshold, |
| 867 cc::switches::kTopControlsHideThreshold, |
| 866 cc::switches::kSlowDownRasterScaleFactor, | 868 cc::switches::kSlowDownRasterScaleFactor, |
| 867 cc::switches::kUseCheapnessEstimator, | 869 cc::switches::kUseCheapnessEstimator, |
| 868 }; | 870 }; |
| 869 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 871 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 870 arraysize(kSwitchNames)); | 872 arraysize(kSwitchNames)); |
| 871 | 873 |
| 872 // Disable databases in incognito mode. | 874 // Disable databases in incognito mode. |
| 873 if (GetBrowserContext()->IsOffTheRecord() && | 875 if (GetBrowserContext()->IsOffTheRecord() && |
| 874 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 876 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
| 875 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 877 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 TRACE_EVENT0("renderer_host", | 1626 TRACE_EVENT0("renderer_host", |
| 1625 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1627 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1626 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1628 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1627 ack_params.sync_point = 0; | 1629 ack_params.sync_point = 0; |
| 1628 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1630 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1629 gpu_process_host_id, | 1631 gpu_process_host_id, |
| 1630 ack_params); | 1632 ack_params); |
| 1631 } | 1633 } |
| 1632 | 1634 |
| 1633 } // namespace content | 1635 } // namespace content |
| OLD | NEW |