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