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

Unified Diff: components/mus/gpu/gpu_service_mus.h

Issue 2020293003: Use mus::MojoGpuMemoryBufferManager in mus::GpuService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update 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/mus/gpu/gpu_service_impl.cc ('k') | components/mus/gpu/gpu_service_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gpu/gpu_service_mus.h
diff --git a/components/mus/gpu/gpu_service_mus.h b/components/mus/gpu/gpu_service_mus.h
index 7d6ffdc1c73742349d970b89daeec29506a4ca89..48eab8c2536d88da0e12ca3016a3eb9345bb9102 100644
--- a/components/mus/gpu/gpu_service_mus.h
+++ b/components/mus/gpu/gpu_service_mus.h
@@ -7,6 +7,7 @@
#include "base/callback.h"
#include "base/synchronization/waitable_event.h"
+#include "base/threading/non_thread_safe.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
#include "gpu/command_buffer/service/gpu_preferences.h"
@@ -41,18 +42,18 @@ class MediaService;
namespace mus {
-class GpuMemoryBufferManagerMusLocal;
+class MojoGpuMemoryBufferManager;
// TODO(fsamuel): GpuServiceMus is intended to be the Gpu thread within Mus.
// Similar to GpuChildThread, it is a GpuChannelManagerDelegate and will have a
// GpuChannelManager.
class GpuServiceMus : public gpu::GpuChannelManagerDelegate,
- public gpu::GpuChannelHostFactory {
+ public gpu::GpuChannelHostFactory,
+ public base::NonThreadSafe {
public:
- typedef base::Callback<void(const IPC::ChannelHandle&)>
+ typedef base::Callback<void(int client_id, const IPC::ChannelHandle&)>
EstablishGpuChannelCallback;
- void EstablishGpuChannel(int client_id,
- uint64_t client_tracing_id,
+ void EstablishGpuChannel(uint64_t client_tracing_id,
bool preempts,
bool allow_view_command_buffers,
bool allow_real_time_streams,
@@ -122,6 +123,9 @@ class GpuServiceMus : public gpu::GpuChannelManagerDelegate,
bool allow_real_time_streams,
IPC::ChannelHandle* channel_handle);
+ // The next client id.
+ int next_client_id_;
+
// The main thread message loop.
base::MessageLoop* main_message_loop_;
@@ -143,8 +147,7 @@ class GpuServiceMus : public gpu::GpuChannelManagerDelegate,
std::unique_ptr<gpu::GpuMemoryBufferFactory> gpu_memory_buffer_factory_;
// A GPU memory buffer manager used locally.
- std::unique_ptr<GpuMemoryBufferManagerMusLocal>
- gpu_memory_buffer_manager_mus_local_;
+ std::unique_ptr<MojoGpuMemoryBufferManager> gpu_memory_buffer_manager_local_;
// A GPU channel used locally.
scoped_refptr<gpu::GpuChannelHost> gpu_channel_local_;
« no previous file with comments | « components/mus/gpu/gpu_service_impl.cc ('k') | components/mus/gpu/gpu_service_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698