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

Unified Diff: services/ui/surfaces/display_compositor.h

Issue 2539893002: Mus: Implement GpuMain mojo interface (Closed)
Patch Set: Addressed Sadrul's comments Created 4 years 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 | « services/ui/gpu/interfaces/gpu_service_internal.mojom ('k') | services/ui/surfaces/display_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/display_compositor.h
diff --git a/services/ui/surfaces/display_compositor.h b/services/ui/surfaces/display_compositor.h
index 243291c8fd3dae78c73e357531edd71484ba7112..950250de087f2d69bfe6ba422f540a298c40a18c 100644
--- a/services/ui/surfaces/display_compositor.h
+++ b/services/ui/surfaces/display_compositor.h
@@ -8,12 +8,14 @@
#include <stdint.h>
#include "base/macros.h"
+#include "base/threading/thread_checker.h"
#include "cc/ipc/display_compositor.mojom.h"
#include "cc/surfaces/frame_sink_id.h"
#include "cc/surfaces/local_frame_id.h"
#include "cc/surfaces/surface_id.h"
#include "cc/surfaces/surface_manager.h"
#include "cc/surfaces/surface_observer.h"
+#include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
#include "gpu/ipc/common/surface_handle.h"
#include "gpu/ipc/in_process_command_buffer.h"
#include "ipc/ipc_channel_handle.h"
@@ -21,6 +23,7 @@
#include "services/ui/common/mus_gpu_memory_buffer_manager.h"
namespace gpu {
+class GpuMemoryBufferManager;
class ImageFactory;
}
@@ -33,7 +36,6 @@ namespace ui {
class DisplayCompositorClient;
class GpuCompositorFrameSink;
-class MusGpuMemoryBufferManager;
// The DisplayCompositor object is an object global to the Window Server app
// that holds the SurfaceServer and allocates new Surfaces namespaces.
@@ -45,7 +47,7 @@ class DisplayCompositor : public cc::SurfaceObserver,
public:
DisplayCompositor(
scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_service,
- std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager,
+ std::unique_ptr<gpu::GpuMemoryBufferManager> gpu_memory_buffer_manager,
gpu::ImageFactory* image_factory,
cc::mojom::DisplayCompositorRequest request,
cc::mojom::DisplayCompositorClientPtr client);
@@ -95,7 +97,7 @@ class DisplayCompositor : public cc::SurfaceObserver,
std::unique_ptr<GpuCompositorFrameSink>,
cc::FrameSinkIdHash>
compositor_frame_sinks_;
- std::unique_ptr<MusGpuMemoryBufferManager> gpu_memory_buffer_manager_;
+ std::unique_ptr<gpu::GpuMemoryBufferManager> gpu_memory_buffer_manager_;
gpu::ImageFactory* image_factory_;
cc::mojom::DisplayCompositorClientPtr client_;
@@ -109,6 +111,8 @@ class DisplayCompositor : public cc::SurfaceObserver,
cc::FrameSinkIdHash>
temp_references_;
+ base::ThreadChecker thread_checker_;
+
mojo::Binding<cc::mojom::DisplayCompositor> binding_;
DISALLOW_COPY_AND_ASSIGN(DisplayCompositor);
« no previous file with comments | « services/ui/gpu/interfaces/gpu_service_internal.mojom ('k') | services/ui/surfaces/display_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698