| 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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 cc::switches::kShowReplicaScreenSpaceRects, | 874 cc::switches::kShowReplicaScreenSpaceRects, |
| 875 cc::switches::kShowScreenSpaceRects, | 875 cc::switches::kShowScreenSpaceRects, |
| 876 cc::switches::kShowSurfaceDamageRects, | 876 cc::switches::kShowSurfaceDamageRects, |
| 877 cc::switches::kSlowDownRasterScaleFactor, | 877 cc::switches::kSlowDownRasterScaleFactor, |
| 878 cc::switches::kTopControlsHeight, | 878 cc::switches::kTopControlsHeight, |
| 879 cc::switches::kTopControlsHideThreshold, | 879 cc::switches::kTopControlsHideThreshold, |
| 880 cc::switches::kTopControlsShowThreshold, | 880 cc::switches::kTopControlsShowThreshold, |
| 881 cc::switches::kTraceAllRenderedFrames, | 881 cc::switches::kTraceAllRenderedFrames, |
| 882 cc::switches::kTraceOverdraw, | 882 cc::switches::kTraceOverdraw, |
| 883 cc::switches::kUseCheapnessEstimator, | 883 cc::switches::kUseCheapnessEstimator, |
| 884 cc::switches::kCompositeToMailbox, |
| 884 }; | 885 }; |
| 885 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 886 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 886 arraysize(kSwitchNames)); | 887 arraysize(kSwitchNames)); |
| 887 | 888 |
| 888 // Disable databases in incognito mode. | 889 // Disable databases in incognito mode. |
| 889 if (GetBrowserContext()->IsOffTheRecord() && | 890 if (GetBrowserContext()->IsOffTheRecord() && |
| 890 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 891 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
| 891 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 892 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
| 892 #if defined(OS_ANDROID) | 893 #if defined(OS_ANDROID) |
| 893 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); | 894 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1640 TRACE_EVENT0("renderer_host", | 1641 TRACE_EVENT0("renderer_host", |
| 1641 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1642 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1642 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1643 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1643 ack_params.sync_point = 0; | 1644 ack_params.sync_point = 0; |
| 1644 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1645 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1645 gpu_process_host_id, | 1646 gpu_process_host_id, |
| 1646 ack_params); | 1647 ack_params); |
| 1647 } | 1648 } |
| 1648 | 1649 |
| 1649 } // namespace content | 1650 } // namespace content |
| OLD | NEW |