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