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

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

Issue 769703005: Move AW renderer compositor context to gpu thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready Created 5 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Support EME/L1 with hole-punching. 78 // Support EME/L1 with hole-punching.
79 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing); 79 cl->AppendSwitch(switches::kMediaDrmEnableNonCompositing);
80 #endif 80 #endif
81 81
82 // WebRTC hardware decoding is not supported, internal bug 15075307 82 // WebRTC hardware decoding is not supported, internal bug 15075307
83 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); 83 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding);
84 84
85 // This is needed for sharing textures across the different GL threads. 85 // This is needed for sharing textures across the different GL threads.
86 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); 86 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes);
87 87
88 // Move renderer compositor context to chrome gpu thread.
89 cl->AppendSwitch(switches::kEnableAsyncPixelWithThreadedTextureMailboxes);
90
88 // This is needed to be able to mmap the V8 snapshot and ICU data file 91 // This is needed to be able to mmap the V8 snapshot and ICU data file
89 // directly from the WebView .apk. 92 // directly from the WebView .apk.
90 // This needs to be here so that it gets to run before the code in 93 // This needs to be here so that it gets to run before the code in
91 // content_main_runner that reads these values tries to do so. 94 // content_main_runner that reads these values tries to do so.
92 // In multi-process mode this code would live in 95 // In multi-process mode this code would live in
93 // AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess. 96 // AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess.
94 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 97 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
95 CHECK(AwAssets::RegisterAssetWithGlobalDescriptors( 98 CHECK(AwAssets::RegisterAssetWithGlobalDescriptors(
96 kV8NativesDataDescriptor, gin::IsolateHolder::kNativesFileName)); 99 kV8NativesDataDescriptor, gin::IsolateHolder::kNativesFileName));
97 CHECK(AwAssets::RegisterAssetWithGlobalDescriptors( 100 CHECK(AwAssets::RegisterAssetWithGlobalDescriptors(
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 177
175 #if defined(VIDEO_HOLE) 178 #if defined(VIDEO_HOLE)
176 content::ExternalVideoSurfaceContainer* 179 content::ExternalVideoSurfaceContainer*
177 AwMainDelegate::CreateExternalVideoSurfaceContainer( 180 AwMainDelegate::CreateExternalVideoSurfaceContainer(
178 content::WebContents* web_contents) { 181 content::WebContents* web_contents) {
179 return new ExternalVideoSurfaceContainerImpl(web_contents); 182 return new ExternalVideoSurfaceContainerImpl(web_contents);
180 } 183 }
181 #endif 184 #endif
182 185
183 } // namespace android_webview 186 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698