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

Side by Side Diff: components/mus/gpu/gpu_service_mus.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 unified diff | Download patch
« no previous file with comments | « components/mus/common/gpu_service.cc ('k') | components/mus/gpu/gpu_service_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ 5 #ifndef COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_
6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ 6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void EstablishGpuChannelOnGpuThread(int client_id, 127 void EstablishGpuChannelOnGpuThread(int client_id,
128 uint64_t client_tracing_id, 128 uint64_t client_tracing_id,
129 bool preempts, 129 bool preempts,
130 bool allow_view_command_buffers, 130 bool allow_view_command_buffers,
131 bool allow_real_time_streams, 131 bool allow_real_time_streams,
132 IPC::ChannelHandle* channel_handle); 132 IPC::ChannelHandle* channel_handle);
133 133
134 // The next client id. 134 // The next client id.
135 int next_client_id_; 135 int next_client_id_;
136 136
137 // The main thread message loop. 137 // The main thread task runner.
138 base::MessageLoop* main_message_loop_; 138 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
139 139
140 // An event that will be signalled when we shutdown. 140 // An event that will be signalled when we shutdown.
141 base::WaitableEvent shutdown_event_; 141 base::WaitableEvent shutdown_event_;
142 142
143 // The main thread for GpuService. 143 // The main thread for GpuService.
144 base::Thread gpu_thread_; 144 base::Thread gpu_thread_;
145 145
146 // The thread that handles IO events for GpuService. 146 // The thread that handles IO events for GpuService.
147 base::Thread io_thread_; 147 base::Thread io_thread_;
148 148
(...skipping 15 matching lines...) Expand all
164 164
165 // Information about the GPU, such as device and vendor ID. 165 // Information about the GPU, such as device and vendor ID.
166 gpu::GPUInfo gpu_info_; 166 gpu::GPUInfo gpu_info_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(GpuServiceMus); 168 DISALLOW_COPY_AND_ASSIGN(GpuServiceMus);
169 }; 169 };
170 170
171 } // namespace mus 171 } // namespace mus
172 172
173 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_ 173 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_MUS_H_
OLDNEW
« no previous file with comments | « components/mus/common/gpu_service.cc ('k') | components/mus/gpu/gpu_service_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698