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

Unified Diff: components/mus/common/gpu_service.h

Issue 2087583002: Remove calls to MessageLoop::current() in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test error Created 4 years, 6 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 | « components/invalidation/impl/sync_system_resources.cc ('k') | components/mus/common/gpu_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/common/gpu_service.h
diff --git a/components/mus/common/gpu_service.h b/components/mus/common/gpu_service.h
index 91be13f3d90cce73086c0f801cda3c15834b56be..1ecb979161bc12963fa4d5902c1a0e115259d9a5 100644
--- a/components/mus/common/gpu_service.h
+++ b/components/mus/common/gpu_service.h
@@ -9,6 +9,8 @@
#include <vector>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/lock.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
@@ -43,7 +45,7 @@ class MUS_COMMON_EXPORT GpuService : public gpu::GpuChannelHostFactory {
std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
size_t size) override;
- base::MessageLoop* main_message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
base::WaitableEvent shutdown_event_;
base::Thread io_thread_;
std::unique_ptr<MojoGpuMemoryBufferManager> gpu_memory_buffer_manager_;
« no previous file with comments | « components/invalidation/impl/sync_system_resources.cc ('k') | components/mus/common/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698