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

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

Issue 1016033006: Enable BeginFrame scheduling on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable BeginFrame scheduling under flag Created 5 years, 7 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 | ash/display/display_controller.cc » ('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 "android_webview/browser/aw_content_browser_client.h" 7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/browser/browser_view_renderer.h" 8 #include "android_webview/browser/browser_view_renderer.h"
9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
10 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h" 10 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { 55 bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
56 content::SetContentClient(&content_client_); 56 content::SetContentClient(&content_client_);
57 57
58 content::RegisterMediaUrlInterceptor(new AwMediaUrlInterceptor()); 58 content::RegisterMediaUrlInterceptor(new AwMediaUrlInterceptor());
59 59
60 BrowserViewRenderer::CalculateTileMemoryPolicy(); 60 BrowserViewRenderer::CalculateTileMemoryPolicy();
61 61
62 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); 62 base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
63 cl->AppendSwitch(switches::kEnableBeginFrameScheduling); 63 cl->AppendSwitch(cc::switches::kEnableBeginFrameScheduling);
64 64
65 // WebView uses the Android system's scrollbars and overscroll glow. 65 // WebView uses the Android system's scrollbars and overscroll glow.
66 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); 66 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect);
67 67
68 // Pull-to-refresh should never be a default WebView action. 68 // Pull-to-refresh should never be a default WebView action.
69 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); 69 cl->AppendSwitch(switches::kDisablePullToRefreshEffect);
70 70
71 // Not yet supported in single-process mode. 71 // Not yet supported in single-process mode.
72 cl->AppendSwitch(switches::kDisableSharedWorkers); 72 cl->AppendSwitch(switches::kDisableSharedWorkers);
73 73
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 #if defined(VIDEO_HOLE) 199 #if defined(VIDEO_HOLE)
200 content::ExternalVideoSurfaceContainer* 200 content::ExternalVideoSurfaceContainer*
201 AwMainDelegate::CreateExternalVideoSurfaceContainer( 201 AwMainDelegate::CreateExternalVideoSurfaceContainer(
202 content::WebContents* web_contents) { 202 content::WebContents* web_contents) {
203 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( 203 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create(
204 web_contents); 204 web_contents);
205 } 205 }
206 #endif 206 #endif
207 207
208 } // namespace android_webview 208 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698