OLD | NEW |
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/hardware_renderer.h" | 9 #include "android_webview/browser/hardware_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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 CommandLine* cl = CommandLine::ForCurrentProcess(); | 58 CommandLine* cl = CommandLine::ForCurrentProcess(); |
59 cl->AppendSwitch(switches::kEnableBeginFrameScheduling); | 59 cl->AppendSwitch(switches::kEnableBeginFrameScheduling); |
60 cl->AppendSwitch(switches::kEnableMapImage); | 60 cl->AppendSwitch(switches::kEnableMapImage); |
61 cl->AppendSwitch(switches::kEnableImplSidePainting); | 61 cl->AppendSwitch(switches::kEnableImplSidePainting); |
62 | 62 |
63 // WebView uses the Android system's scrollbars and overscroll glow. | 63 // WebView uses the Android system's scrollbars and overscroll glow. |
64 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); | 64 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); |
65 | 65 |
66 // Not yet supported in single-process mode. | 66 // Not yet supported in single-process mode. |
67 cl->AppendSwitch(switches::kDisableExperimentalWebGL); | |
68 cl->AppendSwitch(switches::kDisableSharedWorkers); | 67 cl->AppendSwitch(switches::kDisableSharedWorkers); |
69 | 68 |
70 | 69 |
71 // File system API not supported (requires some new API; internal bug 6930981) | 70 // File system API not supported (requires some new API; internal bug 6930981) |
72 cl->AppendSwitch(switches::kDisableFileSystem); | 71 cl->AppendSwitch(switches::kDisableFileSystem); |
73 | 72 |
74 // Fullscreen video with subtitle is not yet supported. | 73 // Fullscreen video with subtitle is not yet supported. |
75 cl->AppendSwitch(switches::kDisableOverlayFullscreenVideoSubtitle); | 74 cl->AppendSwitch(switches::kDisableOverlayFullscreenVideoSubtitle); |
76 | 75 |
77 #if defined(VIDEO_HOLE) | 76 #if defined(VIDEO_HOLE) |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 155 |
157 #if defined(VIDEO_HOLE) | 156 #if defined(VIDEO_HOLE) |
158 content::ExternalVideoSurfaceContainer* | 157 content::ExternalVideoSurfaceContainer* |
159 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 158 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
160 content::WebContents* web_contents) { | 159 content::WebContents* web_contents) { |
161 return new ExternalVideoSurfaceContainerImpl(web_contents); | 160 return new ExternalVideoSurfaceContainerImpl(web_contents); |
162 } | 161 } |
163 #endif | 162 #endif |
164 | 163 |
165 } // namespace android_webview | 164 } // namespace android_webview |
OLD | NEW |