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

Unified Diff: android_webview/browser/deferred_gpu_command_service.cc

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove forward decl/includes Created 5 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/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 0bcb3afdcc3147d7d43f263160a4c435947b854d..a9aeec74253860cb77d16f3b2ddc8fc85cf37a53 100644
--- a/android_webview/browser/deferred_gpu_command_service.cc
+++ b/android_webview/browser/deferred_gpu_command_service.cc
@@ -11,6 +11,7 @@
#include "base/trace_event/trace_event.h"
#include "content/public/browser/android/synchronous_compositor.h"
#include "gpu/command_buffer/service/shader_translator_cache.h"
+#include "gpu/command_buffer/service/sync_point_manager.h"
namespace android_webview {
@@ -60,7 +61,8 @@ DeferredGpuCommandService* DeferredGpuCommandService::GetInstance() {
return g_service.Get().get();
}
-DeferredGpuCommandService::DeferredGpuCommandService() {}
+DeferredGpuCommandService::DeferredGpuCommandService()
+ : sync_point_manager_(new gpu::SyncPointManager(true)) {}
DeferredGpuCommandService::~DeferredGpuCommandService() {
base::AutoLock lock(tasks_lock_);
@@ -151,6 +153,10 @@ DeferredGpuCommandService::shader_translator_cache() {
return shader_translator_cache_;
}
+gpu::SyncPointManager* DeferredGpuCommandService::sync_point_manager() {
+ return sync_point_manager_.get();
+}
+
void DeferredGpuCommandService::RunTasks() {
TRACE_EVENT0("android_webview", "DeferredGpuCommandService::RunTasks");
bool has_more_tasks;
« no previous file with comments | « android_webview/browser/deferred_gpu_command_service.h ('k') | android_webview/browser/shared_renderer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698