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

Unified Diff: android_webview/browser/deferred_gpu_command_service.h

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.h
diff --git a/android_webview/browser/deferred_gpu_command_service.h b/android_webview/browser/deferred_gpu_command_service.h
index 0b092ed1cc4860f00ff306909109dc868fddc83c..81244dd5c79b6b3916dee4f8b4a316a8e25f913d 100644
--- a/android_webview/browser/deferred_gpu_command_service.h
+++ b/android_webview/browser/deferred_gpu_command_service.h
@@ -10,10 +10,15 @@
#include "base/lazy_instance.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_local.h"
#include "base/time/time.h"
#include "gpu/command_buffer/service/in_process_command_buffer.h"
+namespace gpu {
+class SyncPointManager;
+}
+
namespace android_webview {
class ScopedAllowGL {
@@ -41,6 +46,7 @@ class DeferredGpuCommandService
bool UseVirtualizedGLContexts() override;
scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache()
override;
+ gpu::SyncPointManager* sync_point_manager() override;
void RunTasks();
// If |is_idle| is false, this will only run older idle tasks.
@@ -68,6 +74,7 @@ class DeferredGpuCommandService
std::queue<base::Closure> tasks_;
std::queue<std::pair<base::Time, base::Closure> > idle_tasks_;
+ scoped_ptr<gpu::SyncPointManager> sync_point_manager_;
scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
DISALLOW_COPY_AND_ASSIGN(DeferredGpuCommandService);
};
« no previous file with comments | « android_webview/browser/aw_browser_main_parts.cc ('k') | android_webview/browser/deferred_gpu_command_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698