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_IMPL_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_MOJO_DRM_HOST_IMPL_H_ |
6 #define UI_OZONE_PLATFORM_DRM_MOJO_DRM_HOST_IMPL_H_ | 6 #define UI_OZONE_PLATFORM_DRM_MOJO_DRM_HOST_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "mojo/public/cpp/bindings/strong_binding.h" | 9 #include "mojo/public/cpp/bindings/strong_binding.h" |
10 #include "mojo/services/ozone_drm_host/public/interfaces/ozone_drm_host.mojom.h" | 10 #include "mojo/services/ozone_drm_host/interfaces/ozone_drm_host.mojom.h" |
11 #include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h" | 11 #include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h" |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 | 14 |
15 class MojoDrmHostImpl : public mojo::OzoneDrmHost { | 15 class MojoDrmHostImpl : public mojo::OzoneDrmHost { |
16 public: | 16 public: |
17 explicit MojoDrmHostImpl(mojo::InterfaceRequest<mojo::OzoneDrmHost> request); | 17 explicit MojoDrmHostImpl(mojo::InterfaceRequest<mojo::OzoneDrmHost> request); |
18 ~MojoDrmHostImpl() override; | 18 ~MojoDrmHostImpl() override; |
19 | 19 |
20 private: | 20 private: |
21 // OzoneDrmHost | 21 // OzoneDrmHost |
22 void UpdateNativeDisplays( | 22 void UpdateNativeDisplays( |
23 mojo::Array<mojo::DisplaySnapshotPtr> displays) override; | 23 mojo::Array<mojo::DisplaySnapshotPtr> displays) override; |
24 void DisplayConfigured(int64_t id, bool result) override; | 24 void DisplayConfigured(int64_t id, bool result) override; |
25 | 25 |
26 ui::DrmGpuPlatformSupportHost* platform_support_; | 26 ui::DrmGpuPlatformSupportHost* platform_support_; |
27 mojo::StrongBinding<mojo::OzoneDrmHost> binding_; | 27 mojo::StrongBinding<mojo::OzoneDrmHost> binding_; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(MojoDrmHostImpl); | 29 DISALLOW_COPY_AND_ASSIGN(MojoDrmHostImpl); |
30 }; | 30 }; |
31 | 31 |
32 } // namespace ui | 32 } // namespace ui |
33 | 33 |
34 #endif | 34 #endif |
OLD | NEW |