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

Unified Diff: ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h

Issue 1311043016: Switch DRM platform to using a separate thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mv-drm-calls-on-thread2
Patch Set: update & fix clang Created 5 years, 2 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
Index: ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h
diff --git a/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h
index 21caf35e6550877b29c2cadb9133d99aad7ba639..812865cba26edb05f8100aea908457dc2e41bde2 100644
--- a/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h
+++ b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h
@@ -5,46 +5,18 @@
#ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_PLATFORM_SUPPORT_H_
#define UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_PLATFORM_SUPPORT_H_
-#include "base/containers/scoped_ptr_hash_map.h"
-#include "base/memory/scoped_ptr.h"
-#include "ipc/message_filter.h"
-#include "ui/display/types/display_constants.h"
-#include "ui/gfx/native_widget_types.h"
+#include "base/memory/ref_counted.h"
#include "ui/ozone/public/gpu_platform_support.h"
-class SkBitmap;
-
-namespace base {
-class FilePath;
-class SingleThreadTaskRunner;
-struct FileDescriptor;
-}
-
-namespace gfx {
-class Point;
-class Rect;
-}
-
namespace ui {
-class DrmDeviceManager;
-class DrmGpuDisplayManager;
-class DrmSurfaceFactory;
-class DrmWindow;
-class ScreenManager;
-class ScanoutBufferGenerator;
-
-struct DisplayMode_Params;
-struct DisplaySnapshot_Params;
-struct OverlayCheck_Params;
-struct GammaRampRGBEntry;
+class DrmThread;
+class DrmThreadMessageProxy;
class DrmGpuPlatformSupport : public GpuPlatformSupport {
public:
- DrmGpuPlatformSupport(DrmDeviceManager* drm_device_manager,
- ScreenManager* screen_manager,
- ScanoutBufferGenerator* buffer_generator,
- scoped_ptr<DrmGpuDisplayManager> display_manager);
+ explicit DrmGpuPlatformSupport(
+ const scoped_refptr<DrmThreadMessageProxy>& filter);
~DrmGpuPlatformSupport() override;
// GpuPlatformSupport:
@@ -55,44 +27,9 @@ class DrmGpuPlatformSupport : public GpuPlatformSupport {
bool OnMessageReceived(const IPC::Message& message) override;
private:
- void OnCreateWindow(gfx::AcceleratedWidget widget);
- void OnDestroyWindow(gfx::AcceleratedWidget widget);
- void OnWindowBoundsChanged(gfx::AcceleratedWidget widget,
- const gfx::Rect& bounds);
- void OnCursorSet(gfx::AcceleratedWidget widget,
- const std::vector<SkBitmap>& bitmaps,
- const gfx::Point& location,
- int frame_delay_ms);
- void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location);
- void OnCheckOverlayCapabilities(
- gfx::AcceleratedWidget widget,
- const std::vector<OverlayCheck_Params>& overlays);
-
- // Display related IPC handlers.
- void OnRefreshNativeDisplays();
- void OnConfigureNativeDisplay(int64_t id,
- const DisplayMode_Params& mode,
- const gfx::Point& origin);
- void OnDisableNativeDisplay(int64_t id);
- void OnTakeDisplayControl();
- void OnRelinquishDisplayControl();
- void OnAddGraphicsDevice(const base::FilePath& path,
- const base::FileDescriptor& fd);
- void OnRemoveGraphicsDevice(const base::FilePath& path);
- void OnGetHDCPState(int64_t display_id);
- void OnSetHDCPState(int64_t display_id, HDCPState state);
- void OnSetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut);
-
- void SetIOTaskRunner(
- const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
-
- IPC::Sender* sender_ = nullptr; // Not owned.
- DrmDeviceManager* drm_device_manager_; // Not owned.
- ScreenManager* screen_manager_; // Not owned.
- ScanoutBufferGenerator* buffer_generator_; // Not owned.
+ scoped_refptr<DrmThreadMessageProxy> filter_;
- scoped_ptr<DrmGpuDisplayManager> display_manager_;
- scoped_refptr<IPC::MessageFilter> filter_;
+ DISALLOW_COPY_AND_ASSIGN(DrmGpuPlatformSupport);
};
} // namespace ui
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_device_manager.cc ('k') | ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698