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 switches::kV, | 858 switches::kV, |
859 switches::kVideoThreads, | 859 switches::kVideoThreads, |
860 switches::kVModule, | 860 switches::kVModule, |
861 switches::kWebCoreLogChannels, | 861 switches::kWebCoreLogChannels, |
862 cc::switches::kBackgroundColorInsteadOfCheckerboard, | 862 cc::switches::kBackgroundColorInsteadOfCheckerboard, |
863 cc::switches::kDisableThreadedAnimation, | 863 cc::switches::kDisableThreadedAnimation, |
864 cc::switches::kEnablePartialSwap, | 864 cc::switches::kEnablePartialSwap, |
865 cc::switches::kEnablePerTilePainting, | 865 cc::switches::kEnablePerTilePainting, |
866 cc::switches::kEnablePinchInCompositor, | 866 cc::switches::kEnablePinchInCompositor, |
867 cc::switches::kJankInsteadOfCheckerboard, | 867 cc::switches::kJankInsteadOfCheckerboard, |
| 868 cc::switches::kTraceOverdraw, |
868 }; | 869 }; |
869 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 870 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
870 arraysize(kSwitchNames)); | 871 arraysize(kSwitchNames)); |
871 | 872 |
872 // Disable databases in incognito mode. | 873 // Disable databases in incognito mode. |
873 if (GetBrowserContext()->IsOffTheRecord() && | 874 if (GetBrowserContext()->IsOffTheRecord() && |
874 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 875 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
875 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 876 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
876 #if defined(OS_ANDROID) | 877 #if defined(OS_ANDROID) |
877 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); | 878 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 int32 gpu_process_host_id) { | 1598 int32 gpu_process_host_id) { |
1598 TRACE_EVENT0("renderer_host", | 1599 TRACE_EVENT0("renderer_host", |
1599 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1600 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1600 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1601 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1601 gpu_process_host_id, | 1602 gpu_process_host_id, |
1602 false, | 1603 false, |
1603 0); | 1604 0); |
1604 } | 1605 } |
1605 | 1606 |
1606 } // namespace content | 1607 } // namespace content |
OLD | NEW |