| 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;
|
|
|