OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 UI_OZONE_PLATFORM_DRM_MOJO_DRM_HOST_DELEGATE_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_MOJO_DRM_HOST_DELEGATE_H_ |
6 #define UI_OZONE_PLATFORM_DRM_MOJO_DRM_HOST_DELEGATE_H_ | 6 #define UI_OZONE_PLATFORM_DRM_MOJO_DRM_HOST_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom.h" | 9 #include "mojo/services/ozone_drm_gpu/interfaces/ozone_drm_gpu.mojom.h" |
10 #include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h" | 10 #include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 class MojoDrmHostDelegate : public ui::DrmGpuPlatformSupportHostDelegate { | 14 class MojoDrmHostDelegate : public ui::DrmGpuPlatformSupportHostDelegate { |
15 public: | 15 public: |
16 explicit MojoDrmHostDelegate(mojo::OzoneDrmGpu* ozone_drm_gpu); | 16 explicit MojoDrmHostDelegate(mojo::OzoneDrmGpu* ozone_drm_gpu); |
17 ~MojoDrmHostDelegate() override; | 17 ~MojoDrmHostDelegate() override; |
18 | 18 |
19 private: | 19 private: |
20 // DrmGpuPlatformSupportHostDelegate. | 20 // DrmGpuPlatformSupportHostDelegate. |
21 void CreateWindow(const gfx::AcceleratedWidget& widget) override; | 21 void CreateWindow(const gfx::AcceleratedWidget& widget) override; |
22 void WindowBoundsChanged(const gfx::AcceleratedWidget& widget, | 22 void WindowBoundsChanged(const gfx::AcceleratedWidget& widget, |
23 const gfx::Rect& bounds) override; | 23 const gfx::Rect& bounds) override; |
24 void AddGraphicsDevice(const base::FilePath& path, | 24 void AddGraphicsDevice(const base::FilePath& path, |
25 const base::FileDescriptor& fd) override; | 25 const base::FileDescriptor& fd) override; |
26 bool RefreshNativeDisplays() override; | 26 bool RefreshNativeDisplays() override; |
27 bool ConfigureNativeDisplay(int64_t id, | 27 bool ConfigureNativeDisplay(int64_t id, |
28 const ui::DisplayMode_Params& mode, | 28 const ui::DisplayMode_Params& mode, |
29 const gfx::Point& originhost) override; | 29 const gfx::Point& originhost) override; |
30 | 30 |
31 mojo::OzoneDrmGpu* ozone_drm_gpu_; | 31 mojo::OzoneDrmGpu* ozone_drm_gpu_; |
32 | 32 |
33 DISALLOW_COPY_AND_ASSIGN(MojoDrmHostDelegate); | 33 DISALLOW_COPY_AND_ASSIGN(MojoDrmHostDelegate); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace ui | 36 } // namespace ui |
37 | 37 |
38 #endif | 38 #endif |
OLD | NEW |