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

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

Issue 2467343002: Revert of aw: Enable async ondraw by default (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 AwMainDelegate::~AwMainDelegate() { 61 AwMainDelegate::~AwMainDelegate() {
62 } 62 }
63 63
64 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { 64 bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
65 content::SetContentClient(&content_client_); 65 content::SetContentClient(&content_client_);
66 66
67 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); 67 base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
68 68
69 // Enable async OnDraw by default. See crbug.com/636164 for progress.
70 cl->AppendSwitch(switches::kAsyncOnDrawHardware);
71
72 // WebView uses the Android system's scrollbars and overscroll glow. 69 // WebView uses the Android system's scrollbars and overscroll glow.
73 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); 70 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect);
74 71
75 // Pull-to-refresh should never be a default WebView action. 72 // Pull-to-refresh should never be a default WebView action.
76 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); 73 cl->AppendSwitch(switches::kDisablePullToRefreshEffect);
77 74
78 // Not yet supported in single-process mode. 75 // Not yet supported in single-process mode.
79 cl->AppendSwitch(switches::kDisableSharedWorkers); 76 cl->AppendSwitch(switches::kDisableSharedWorkers);
80 77
81 // File system API not supported (requires some new API; internal bug 6930981) 78 // File system API not supported (requires some new API; internal bug 6930981)
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 259
263 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { 260 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() {
264 return new AwWebPreferencesPopulaterImpl(); 261 return new AwWebPreferencesPopulaterImpl();
265 } 262 }
266 263
267 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() { 264 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() {
268 return new AwLocaleManagerImpl(); 265 return new AwLocaleManagerImpl();
269 } 266 }
270 267
271 } // namespace android_webview 268 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698