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 110280663fb45187ee01f7f277b514ec8871bf1b..3878bc2f9d462813a2dba36d66edcc6737a36372 100644 |
| --- a/android_webview/lib/main/aw_main_delegate.cc |
| +++ b/android_webview/lib/main/aw_main_delegate.cc |
| @@ -24,7 +24,6 @@ |
| #include "content/public/browser/browser_thread.h" |
| #include "content/public/common/content_switches.h" |
| #include "gpu/command_buffer/client/gl_in_process_context.h" |
| -#include "gpu/command_buffer/service/in_process_command_buffer.h" |
| #include "media/base/media_switches.h" |
| #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
| @@ -49,14 +48,16 @@ AwMainDelegate::~AwMainDelegate() { |
| bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
| content::SetContentClient(&content_client_); |
| - gpu::InProcessCommandBuffer::SetGpuMemoryBufferFactory( |
| - gpu_memory_buffer_factory_.get()); |
| + if (gpu_memory_buffer_factory_.get()->Initialize()) { |
|
boliu
2014/07/26 00:29:14
Amazingly, the function tables are set very late i
no sievers
2014/07/28 19:07:52
Maybe we can switch the call order?
Probably bette
|
| + cl->AppendSwitch(switches::kEnableZeroCopy); |
| + } else { |
| + LOG(WARNING) << "Failed to initialize GpuMemoryBuffer factory"; |
| + } |
| BrowserViewRenderer::CalculateTileMemoryPolicy(); |
| CommandLine* cl = CommandLine::ForCurrentProcess(); |
| cl->AppendSwitch(switches::kEnableBeginFrameScheduling); |
| - cl->AppendSwitch(switches::kEnableZeroCopy); |
| cl->AppendSwitch(switches::kEnableImplSidePainting); |
| // WebView uses the Android system's scrollbars and overscroll glow. |