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..a197035aa3eeaaafbfb0595025b3ec286f1825c0 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,8 +48,8 @@ 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()) |
+ LOG(WARNING) << "Failed to initialize GpuMemoryBuffer factory"; |
BrowserViewRenderer::CalculateTileMemoryPolicy(); |