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

Unified Diff: content/common/gpu/gpu_channel.h

Issue 1135943005: Revert of content/common: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/client/gpu_video_encode_accelerator_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index 710b31ab285b3dd01235faefacaab6c8f3561572..df2fd54576521d13adc53814647c3c37c1b8968d 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -29,6 +29,7 @@
struct GPUCreateCommandBufferConfig;
namespace base {
+class MessageLoopProxy;
class WaitableEvent;
}
@@ -65,7 +66,7 @@
bool allow_future_sync_points);
~GpuChannel() override;
- void Init(base::SingleThreadTaskRunner* io_task_runner,
+ void Init(base::MessageLoopProxy* io_message_loop,
base::WaitableEvent* shutdown_event);
// Get the GpuChannelManager that owns this channel.
@@ -84,8 +85,8 @@
int client_id() const { return client_id_; }
- scoped_refptr<base::SingleThreadTaskRunner> io_task_runner() const {
- return io_task_runner_;
+ scoped_refptr<base::MessageLoopProxy> io_message_loop() const {
+ return io_message_loop_;
}
// IPC::Listener implementation:
@@ -237,7 +238,7 @@
IPC::Message* currently_processing_message_;
scoped_refptr<GpuChannelMessageFilter> filter_;
- scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
+ scoped_refptr<base::MessageLoopProxy> io_message_loop_;
size_t num_stubs_descheduled_;
« no previous file with comments | « content/common/gpu/client/gpu_video_encode_accelerator_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698