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

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

Issue 694113002: Fix tests and enable virtual viewport on Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reupload for tryjob Created 6 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 | « android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java ('k') | 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 "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/lib/aw_browser_dependency_factory_impl.h" 10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Support EME/L1 with hole-punching. 72 // Support EME/L1 with hole-punching.
73 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); 73 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing);
74 #endif 74 #endif
75 75
76 // WebRTC hardware decoding is not supported, internal bug 15075307 76 // WebRTC hardware decoding is not supported, internal bug 15075307
77 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); 77 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding);
78 78
79 // This is needed for sharing textures across the different GL threads. 79 // This is needed for sharing textures across the different GL threads.
80 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); 80 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes);
81 81
82 // Virtual viewport doesn't behave well with web view. crbug.com/426891
83 cl->AppendSwitch(cc::switches::kDisablePinchVirtualViewport);
84
85 return false; 82 return false;
86 } 83 }
87 84
88 void AwMainDelegate::PreSandboxStartup() { 85 void AwMainDelegate::PreSandboxStartup() {
89 // TODO(torne): When we have a separate renderer process, we need to handle 86 // TODO(torne): When we have a separate renderer process, we need to handle
90 // being passed open FDs for the resource paks here. 87 // being passed open FDs for the resource paks here.
91 #if defined(ARCH_CPU_ARM_FAMILY) 88 #if defined(ARCH_CPU_ARM_FAMILY)
92 // Create an instance of the CPU class to parse /proc/cpuinfo and cache 89 // Create an instance of the CPU class to parse /proc/cpuinfo and cache
93 // cpu_brand info. 90 // cpu_brand info.
94 base::CPU cpu_info; 91 base::CPU cpu_info;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 151
155 #if defined(VIDEO_HOLE) 152 #if defined(VIDEO_HOLE)
156 content::ExternalVideoSurfaceContainer* 153 content::ExternalVideoSurfaceContainer*
157 AwMainDelegate::CreateExternalVideoSurfaceContainer( 154 AwMainDelegate::CreateExternalVideoSurfaceContainer(
158 content::WebContents* web_contents) { 155 content::WebContents* web_contents) {
159 return new ExternalVideoSurfaceContainerImpl(web_contents); 156 return new ExternalVideoSurfaceContainerImpl(web_contents);
160 } 157 }
161 #endif 158 #endif
162 159
163 } // namespace android_webview 160 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698