Chromium Code Reviews| 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..919e4396c18a9a7d6b4cd889b09d9db8c7ab8ddb 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,18 +48,6 @@ AwMainDelegate::~AwMainDelegate() { |
| bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
| content::SetContentClient(&content_client_); |
| - CommandLine* cl = CommandLine::ForCurrentProcess(); |
|
boliu
2014/09/29 15:47:18
Still need cl to be defined.
reveman
2014/09/29 18:32:09
Done.
|
| - 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()); |