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

Unified Diff: content/common/gpu/gpu_channel_manager_unittest.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
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager_unittest.cc
diff --git a/content/common/gpu/gpu_channel_manager_unittest.cc b/content/common/gpu/gpu_channel_manager_unittest.cc
index af9482261aa7cc2f68f119b9441f2e4a59990598..92d7f5e174a250f57d3f3b4e87347b16f25bb76b 100644
--- a/content/common/gpu/gpu_channel_manager_unittest.cc
+++ b/content/common/gpu/gpu_channel_manager_unittest.cc
@@ -11,6 +11,7 @@
#include "content/common/message_router.h"
#include "gpu/command_buffer/common/value_state.h"
#include "gpu/command_buffer/service/gl_utils.h"
+#include "gpu/command_buffer/service/sync_point_manager.h"
#include "gpu/command_buffer/service/valuebuffer_manager.h"
#include "ipc/ipc_sync_channel.h"
@@ -110,9 +111,10 @@ class SimpleGpuClient : public IPC::SimpleWorker {
void Start() override {
IPC::SimpleWorker::Start();
- gpu_channel_manager_.reset(
- new GpuChannelManager(&router_, NULL, ipc_thread().task_runner().get(),
- shutdown_event(), channel(), nullptr, nullptr));
+ sync_point_manager_.reset(new gpu::SyncPointManager(false));
+ gpu_channel_manager_.reset(new GpuChannelManager(
+ &router_, NULL, ipc_thread().task_runner().get(), shutdown_event(),
+ channel(), nullptr, sync_point_manager_.get(), nullptr));
}
void Shutdown() override {
@@ -139,6 +141,7 @@ class SimpleGpuClient : public IPC::SimpleWorker {
SimpleMessageRouter router_;
+ scoped_ptr<gpu::SyncPointManager> sync_point_manager_;
scoped_ptr<GpuChannelManager> gpu_channel_manager_;
};
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698