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

Unified Diff: android_webview/browser/deferred_gpu_command_service.cc

Issue 287993004: [Android WebView] Implement Ubercomp for Render Thread support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/browser/deferred_gpu_command_service.cc
diff --git a/android_webview/browser/deferred_gpu_command_service.cc b/android_webview/browser/deferred_gpu_command_service.cc
index 601334ae7f923f6860811a76a163ad612ecc4585..ed1cf5731c5e4d0f7916f0c51119072a0cf4fa30 100644
--- a/android_webview/browser/deferred_gpu_command_service.cc
+++ b/android_webview/browser/deferred_gpu_command_service.cc
@@ -41,6 +41,12 @@ void DeferredGpuCommandService::SetInstance() {
}
}
+// static
+DeferredGpuCommandService* DeferredGpuCommandService::GetInstance() {
+ DCHECK(g_service.Get().get());
+ return g_service.Get().get();
+}
+
DeferredGpuCommandService::DeferredGpuCommandService() {}
DeferredGpuCommandService::~DeferredGpuCommandService() {
@@ -68,6 +74,7 @@ void DeferredGpuCommandService::ScheduleTask(const base::Closure& task) {
if (ScopedAllowGL::IsAllowed()) {
RunTasks();
} else {
+ // TODO(boliu): Improve this to avoid PostTask storm.
RequestProcessGLOnUIThread();
}
}

Powered by Google App Engine
This is Rietveld 408576698