OLD | NEW |
| (Empty) |
1 // Copyright 2014 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_GPU_DRM_DISPLAY_SNAPSHOT_H_ | |
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_SNAPSHOT_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "ui/display/types/display_snapshot.h" | |
10 #include "ui/ozone/platform/drm/common/scoped_drm_types.h" | |
11 | |
12 namespace ui { | |
13 | |
14 class DrmDevice; | |
15 | |
16 class DrmDisplaySnapshot : public DisplaySnapshot { | |
17 public: | |
18 DrmDisplaySnapshot(const scoped_refptr<DrmDevice>& drm, | |
19 drmModeConnector* connector, | |
20 drmModeCrtc* crtc, | |
21 uint32_t index); | |
22 ~DrmDisplaySnapshot() override; | |
23 | |
24 scoped_refptr<DrmDevice> drm() const { return drm_; } | |
25 // Native properties of a display used by the DRM implementation in | |
26 // configuring this display. | |
27 uint32_t connector() const { return connector_; } | |
28 uint32_t crtc() const { return crtc_; } | |
29 | |
30 // DisplaySnapshot overrides: | |
31 std::string ToString() const override; | |
32 | |
33 private: | |
34 scoped_refptr<DrmDevice> drm_; | |
35 uint32_t connector_; | |
36 uint32_t crtc_; | |
37 std::string name_; | |
38 bool overscan_flag_; | |
39 | |
40 DISALLOW_COPY_AND_ASSIGN(DrmDisplaySnapshot); | |
41 }; | |
42 | |
43 } // namespace ui | |
44 | |
45 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_SNAPSHOT_H_ | |
OLD | NEW |