Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 11552009: Add support for calculating the position of the top controls in the cc layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch to a layer specific to top controls. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 switches::kUserAgent, 840 switches::kUserAgent,
841 switches::kV, 841 switches::kV,
842 switches::kVideoThreads, 842 switches::kVideoThreads,
843 switches::kVModule, 843 switches::kVModule,
844 switches::kWebCoreLogChannels, 844 switches::kWebCoreLogChannels,
845 switches::kWebIntentsInvocationEnabled, 845 switches::kWebIntentsInvocationEnabled,
846 cc::switches::kBackgroundColorInsteadOfCheckerboard, 846 cc::switches::kBackgroundColorInsteadOfCheckerboard,
847 cc::switches::kEnableCompositorFrameMessage, 847 cc::switches::kEnableCompositorFrameMessage,
848 cc::switches::kEnableImplSidePainting, 848 cc::switches::kEnableImplSidePainting,
849 cc::switches::kEnablePartialSwap, 849 cc::switches::kEnablePartialSwap,
850 cc::switches::kEnableTopControlsPositionCalculation,
850 cc::switches::kNumRasterThreads, 851 cc::switches::kNumRasterThreads,
851 cc::switches::kShowPropertyChangedRects, 852 cc::switches::kShowPropertyChangedRects,
852 cc::switches::kShowSurfaceDamageRects, 853 cc::switches::kShowSurfaceDamageRects,
853 cc::switches::kShowScreenSpaceRects, 854 cc::switches::kShowScreenSpaceRects,
854 cc::switches::kShowReplicaScreenSpaceRects, 855 cc::switches::kShowReplicaScreenSpaceRects,
855 cc::switches::kShowNonOccludingRects, 856 cc::switches::kShowNonOccludingRects,
856 cc::switches::kShowOccludingRects, 857 cc::switches::kShowOccludingRects,
857 cc::switches::kTraceOverdraw, 858 cc::switches::kTraceOverdraw,
859 cc::switches::kTopControlsHeight,
858 }; 860 };
859 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 861 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
860 arraysize(kSwitchNames)); 862 arraysize(kSwitchNames));
861 863
862 // Disable databases in incognito mode. 864 // Disable databases in incognito mode.
863 if (GetBrowserContext()->IsOffTheRecord() && 865 if (GetBrowserContext()->IsOffTheRecord() &&
864 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { 866 !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
865 renderer_cmd->AppendSwitch(switches::kDisableDatabases); 867 renderer_cmd->AppendSwitch(switches::kDisableDatabases);
866 #if defined(OS_ANDROID) 868 #if defined(OS_ANDROID)
867 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); 869 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging);
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
1602 TRACE_EVENT0("renderer_host", 1604 TRACE_EVENT0("renderer_host",
1603 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1605 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1604 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1606 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1605 ack_params.sync_point = 0; 1607 ack_params.sync_point = 0;
1606 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1608 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1607 gpu_process_host_id, 1609 gpu_process_host_id,
1608 ack_params); 1610 ack_params);
1609 } 1611 }
1610 1612
1611 } // namespace content 1613 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698