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

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

Issue 413103002: Android WebView: Fall back to idle uploads if draw functor table not set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment Created 6 years, 5 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
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.

Powered by Google App Engine
This is Rietveld 408576698