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

Unified Diff: content/common/gpu/gpu_channel_test_common.cc

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Patch Set: rebase Created 5 years, 3 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_test_common.h ('k') | content/common/gpu/gpu_channel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_test_common.cc
diff --git a/content/common/gpu/gpu_channel_test_common.cc b/content/common/gpu/gpu_channel_test_common.cc
index 5925a5492db1da276876820ff146a48dbfc6027b..d2e236eab1190f7f0d8b80d9e4baf0fcddf8f13c 100644
--- a/content/common/gpu/gpu_channel_test_common.cc
+++ b/content/common/gpu/gpu_channel_test_common.cc
@@ -37,14 +37,14 @@ bool TestGpuChannelManager::Send(IPC::Message* msg) {
}
scoped_ptr<GpuChannel> TestGpuChannelManager::CreateGpuChannel(
- gfx::GLShareGroup* share_group,
- gpu::gles2::MailboxManager* mailbox_manager,
int client_id,
uint64_t client_tracing_id,
+ bool preempts,
bool allow_future_sync_points,
bool allow_real_time_streams) {
return make_scoped_ptr(new TestGpuChannel(
- sink_, this, share_group, mailbox_manager, task_runner_.get(),
+ sink_, this, share_group(), mailbox_manager(),
+ preempts ? preemption_flag() : nullptr, task_runner_.get(),
io_task_runner_.get(), client_id, client_tracing_id,
allow_future_sync_points, allow_real_time_streams));
}
@@ -53,6 +53,7 @@ TestGpuChannel::TestGpuChannel(IPC::TestSink* sink,
GpuChannelManager* gpu_channel_manager,
gfx::GLShareGroup* share_group,
gpu::gles2::MailboxManager* mailbox_manager,
+ gpu::PreemptionFlag* preempting_flag,
base::SingleThreadTaskRunner* task_runner,
base::SingleThreadTaskRunner* io_task_runner,
int client_id,
@@ -63,11 +64,11 @@ TestGpuChannel::TestGpuChannel(IPC::TestSink* sink,
nullptr,
share_group,
mailbox_manager,
+ preempting_flag,
task_runner,
io_task_runner,
client_id,
client_tracing_id,
- false,
allow_future_sync_points,
allow_real_time_streams),
sink_(sink) {}
« no previous file with comments | « content/common/gpu/gpu_channel_test_common.h ('k') | content/common/gpu/gpu_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698