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

Side by Side Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 1939253002: Turn on enable begin frame scheduling by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « no previous file | cc/base/switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "android_webview/lib/main/aw_main_delegate.h" 5 #include "android_webview/lib/main/aw_main_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "android_webview/browser/aw_content_browser_client.h" 9 #include "android_webview/browser/aw_content_browser_client.h"
10 #include "android_webview/browser/browser_view_renderer.h" 10 #include "android_webview/browser/browser_view_renderer.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 BrowserViewRenderer::CalculateTileMemoryPolicy(); 69 BrowserViewRenderer::CalculateTileMemoryPolicy();
70 70
71 // WebView apps can override WebView#computeScroll to achieve custom 71 // WebView apps can override WebView#computeScroll to achieve custom
72 // scroll/fling. As a result, fling animations may not be ticked, potentially 72 // scroll/fling. As a result, fling animations may not be ticked, potentially
73 // confusing the tap suppression controller. Simply disable it for WebView. 73 // confusing the tap suppression controller. Simply disable it for WebView.
74 ui::GestureConfiguration::GetInstance() 74 ui::GestureConfiguration::GetInstance()
75 ->set_fling_touchscreen_tap_suppression_enabled(false); 75 ->set_fling_touchscreen_tap_suppression_enabled(false);
76 76
77 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); 77 base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
78 cl->AppendSwitch(cc::switches::kEnableBeginFrameScheduling);
79 78
80 // WebView uses the Android system's scrollbars and overscroll glow. 79 // WebView uses the Android system's scrollbars and overscroll glow.
81 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); 80 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect);
82 81
83 // Pull-to-refresh should never be a default WebView action. 82 // Pull-to-refresh should never be a default WebView action.
84 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); 83 cl->AppendSwitch(switches::kDisablePullToRefreshEffect);
85 84
86 // Not yet supported in single-process mode. 85 // Not yet supported in single-process mode.
87 cl->AppendSwitch(switches::kDisableSharedWorkers); 86 cl->AppendSwitch(switches::kDisableSharedWorkers);
88 87
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 #if defined(VIDEO_HOLE) 261 #if defined(VIDEO_HOLE)
263 content::ExternalVideoSurfaceContainer* 262 content::ExternalVideoSurfaceContainer*
264 AwMainDelegate::CreateExternalVideoSurfaceContainer( 263 AwMainDelegate::CreateExternalVideoSurfaceContainer(
265 content::WebContents* web_contents) { 264 content::WebContents* web_contents) {
266 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( 265 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create(
267 web_contents); 266 web_contents);
268 } 267 }
269 #endif 268 #endif
270 269
271 } // namespace android_webview 270 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | cc/base/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698