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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 608263002: gpu: Remove in-process GPU service support for CHROMIUM_image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more build fixes Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.h ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/lib/main/aw_main_delegate.cc
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index 4d3ede1badc7e184315d7c68391fb26dba9a6599..efa94545f8e7146f0b1a19947679de05d901aeec 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -6,7 +6,6 @@
#include "android_webview/browser/aw_content_browser_client.h"
#include "android_webview/browser/browser_view_renderer.h"
-#include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
#include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
#include "android_webview/lib/aw_browser_dependency_factory_impl.h"
#include "android_webview/native/aw_media_url_interceptor.h"
@@ -40,8 +39,7 @@ base::LazyInstance<scoped_ptr<ScopedAllowWaitForLegacyWebViewApi> >
}
-AwMainDelegate::AwMainDelegate()
- : gpu_memory_buffer_factory_(new GpuMemoryBufferFactoryImpl) {
+AwMainDelegate::AwMainDelegate() {
}
AwMainDelegate::~AwMainDelegate() {
@@ -50,23 +48,12 @@ AwMainDelegate::~AwMainDelegate() {
bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
content::SetContentClient(&content_client_);
- CommandLine* cl = CommandLine::ForCurrentProcess();
- bool zero_copy_disabled_by_switch = cl->HasSwitch(switches::kDisableZeroCopy);
- bool use_zero_copy = !zero_copy_disabled_by_switch &&
- cl->HasSwitch(switches::kEnableZeroCopy) &&
- gpu_memory_buffer_factory_.get()->Initialize();
-
- if (use_zero_copy) {
- cl->AppendSwitch(switches::kEnableZeroCopy);
- } else if (!zero_copy_disabled_by_switch) {
- cl->AppendSwitch(switches::kDisableZeroCopy);
- }
-
content::BrowserMediaPlayerManager::RegisterMediaUrlInterceptor(
new AwMediaUrlInterceptor());
- BrowserViewRenderer::CalculateTileMemoryPolicy(use_zero_copy);
+ BrowserViewRenderer::CalculateTileMemoryPolicy();
+ CommandLine* cl = CommandLine::ForCurrentProcess();
cl->AppendSwitch(switches::kEnableBeginFrameScheduling);
cl->AppendSwitch(switches::kEnableImplSidePainting);
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.h ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698