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

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

Issue 110583008: Enable Canvas2D hardware acceleration for Android WebView Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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
« no previous file with comments | « no previous file | cc/resources/resource_provider.cc » ('j') | cc/trees/thread_proxy.cc » ('J')
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/gpu_memory_buffer_factory_impl.h" 8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
9 #include "android_webview/browser/in_process_view_renderer.h" 9 #include "android_webview/browser/in_process_view_renderer.h"
10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // WebView uses the Android system's scrollbars and overscroll glow. 61 // WebView uses the Android system's scrollbars and overscroll glow.
62 cl->AppendSwitch(switches::kHideScrollbars); 62 cl->AppendSwitch(switches::kHideScrollbars);
63 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); 63 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect);
64 64
65 // Not yet supported in single-process mode. 65 // Not yet supported in single-process mode.
66 cl->AppendSwitch(switches::kDisableExperimentalWebGL); 66 cl->AppendSwitch(switches::kDisableExperimentalWebGL);
67 cl->AppendSwitch(switches::kDisableSharedWorkers); 67 cl->AppendSwitch(switches::kDisableSharedWorkers);
68 68
69 // Ganesh backed 2D-Canvas is not yet working and causes crashes. 69 // Ganesh backed 2D-Canvas is not yet working and causes crashes.
70 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); 70 // cl->AppendSwitch(switches::kDisableAccelerated2dCanvas);
71 71
72 // File system API not supported (requires some new API; internal bug 6930981) 72 // File system API not supported (requires some new API; internal bug 6930981)
73 cl->AppendSwitch(switches::kDisableFileSystem); 73 cl->AppendSwitch(switches::kDisableFileSystem);
74 74
75 // Disable compositor touch hit testing for now to mitigate risk of bugs. 75 // Disable compositor touch hit testing for now to mitigate risk of bugs.
76 cl->AppendSwitch(cc::switches::kDisableCompositorTouchHitTesting); 76 cl->AppendSwitch(cc::switches::kDisableCompositorTouchHitTesting);
77 77
78 // Disable WebRTC. 78 // Disable WebRTC.
79 cl->AppendSwitch(switches::kDisableWebRTC); 79 cl->AppendSwitch(switches::kDisableWebRTC);
80 80
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( 143 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate(
144 content::WebContents* web_contents) { 144 content::WebContents* web_contents) {
145 return AwWebContentsViewDelegate::Create(web_contents); 145 return AwWebContentsViewDelegate::Create(web_contents);
146 } 146 }
147 147
148 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { 148 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() {
149 return new AwWebPreferencesPopulaterImpl(); 149 return new AwWebPreferencesPopulaterImpl();
150 } 150 }
151 151
152 } // namespace android_webview 152 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | cc/resources/resource_provider.cc » ('j') | cc/trees/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698