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

Unified Diff: content/common/gpu/client/gpu_channel_host.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/database_connections_unittest.cc ('k') | content/common/gpu/client/gpu_channel_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/gpu_channel_host.h
diff --git a/content/common/gpu/client/gpu_channel_host.h b/content/common/gpu/client/gpu_channel_host.h
index ea1b6b8cd36bf84153f1ff003d210948d2faf58f..4ec2e06d2bdad744da832c4d4f674128192835ca 100644
--- a/content/common/gpu/client/gpu_channel_host.h
+++ b/content/common/gpu/client/gpu_channel_host.h
@@ -35,7 +35,6 @@ struct GPUCreateCommandBufferConfig;
namespace base {
class MessageLoop;
-class MessageLoopProxy;
class WaitableEvent;
}
@@ -61,7 +60,7 @@ struct GpuListenerInfo {
~GpuListenerInfo();
base::WeakPtr<IPC::Listener> listener;
- scoped_refptr<base::MessageLoopProxy> loop;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner;
};
struct ProxyFlushInfo {
@@ -80,7 +79,8 @@ class CONTENT_EXPORT GpuChannelHostFactory {
virtual ~GpuChannelHostFactory() {}
virtual bool IsMainThread() = 0;
- virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() = 0;
+ virtual scoped_refptr<base::SingleThreadTaskRunner>
+ GetIOThreadTaskRunner() = 0;
virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) = 0;
virtual CreateCommandBufferResult CreateViewCommandBuffer(
int32 surface_id,
@@ -207,7 +207,7 @@ class GpuChannelHost : public IPC::Sender,
// Called on the IO thread.
void AddRoute(int route_id,
base::WeakPtr<IPC::Listener> listener,
- scoped_refptr<base::MessageLoopProxy> loop);
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner);
// Called on the IO thread.
void RemoveRoute(int route_id);
« no previous file with comments | « content/common/database_connections_unittest.cc ('k') | content/common/gpu/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698