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

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

Issue 1134113002: content/common: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CrOS build. 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 df2fd54576521d13adc53814647c3c37c1b8968d..710b31ab285b3dd01235faefacaab6c8f3561572 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -29,7 +29,6 @@
struct GPUCreateCommandBufferConfig;
namespace base {
-class MessageLoopProxy;
class WaitableEvent;
}
@@ -66,7 +65,7 @@ class GpuChannel : public IPC::Listener, public IPC::Sender,
bool allow_future_sync_points);
~GpuChannel() override;
- void Init(base::MessageLoopProxy* io_message_loop,
+ void Init(base::SingleThreadTaskRunner* io_task_runner,
base::WaitableEvent* shutdown_event);
// Get the GpuChannelManager that owns this channel.
@@ -85,8 +84,8 @@ class GpuChannel : public IPC::Listener, public IPC::Sender,
int client_id() const { return client_id_; }
- scoped_refptr<base::MessageLoopProxy> io_message_loop() const {
- return io_message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner() const {
+ return io_task_runner_;
}
// IPC::Listener implementation:
@@ -238,7 +237,7 @@ class GpuChannel : public IPC::Listener, public IPC::Sender,
IPC::Message* currently_processing_message_;
scoped_refptr<GpuChannelMessageFilter> filter_;
- scoped_refptr<base::MessageLoopProxy> io_message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
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