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

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

Issue 16043002: Create content switches for frame scheduling and input manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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 "android_webview/browser/aw_content_browser_client.h" 7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/browser/in_process_renderer/in_process_renderer_client .h" 8 #include "android_webview/browser/in_process_renderer/in_process_renderer_client .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/common/aw_switches.h" 10 #include "android_webview/common/aw_switches.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl 55 webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl
56 ::EnableVirtualizedContext(); 56 ::EnableVirtualizedContext();
57 57
58 CommandLine* cl = CommandLine::ForCurrentProcess(); 58 CommandLine* cl = CommandLine::ForCurrentProcess();
59 if (UIAndRendererCompositorThreadsNotMerged()) { 59 if (UIAndRendererCompositorThreadsNotMerged()) {
60 cl->AppendSwitch(cc::switches::kEnableCompositorFrameMessage); 60 cl->AppendSwitch(cc::switches::kEnableCompositorFrameMessage);
61 cl->AppendSwitch(switches::kEnableWebViewSynchronousAPIs); 61 cl->AppendSwitch(switches::kEnableWebViewSynchronousAPIs);
62 } else { 62 } else {
63 cl->AppendSwitch(switches::kEnableSynchronousRendererCompositor); 63 cl->AppendSwitch(switches::kEnableSynchronousRendererCompositor);
64 cl->AppendSwitch(switches::kEnableVsyncNotification); 64 cl->AppendSwitch(switches::kEnableBeginFrameScheduling);
65 } 65 }
66 66
67 // WebView uses the existing Android View edge effect for overscroll glow. 67 // WebView uses the existing Android View edge effect for overscroll glow.
68 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); 68 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect);
69 69
70 return false; 70 return false;
71 } 71 }
72 72
73 void AwMainDelegate::PreSandboxStartup() { 73 void AwMainDelegate::PreSandboxStartup() {
74 // TODO(torne): When we have a separate renderer process, we need to handle 74 // TODO(torne): When we have a separate renderer process, we need to handle
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 AwBrowserContext* browser_context) { 144 AwBrowserContext* browser_context) {
145 return AwGeolocationPermissionContext::Create(browser_context); 145 return AwGeolocationPermissionContext::Create(browser_context);
146 } 146 }
147 147
148 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( 148 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate(
149 content::WebContents* web_contents) { 149 content::WebContents* web_contents) {
150 return AwWebContentsViewDelegate::Create(web_contents); 150 return AwWebContentsViewDelegate::Create(web_contents);
151 } 151 }
152 152
153 } // namespace android_webview 153 } // 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