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