Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / ui / ozone / platform / dri / display_snapshot_dri.h
blob0ae6b1abaa6e398be8a38673b538bf6db79fd826
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.
5 #ifndef UI_OZONE_PLATFORM_DRI_DISPLAY_SNAPSHOT_DRI_H_
6 #define UI_OZONE_PLATFORM_DRI_DISPLAY_SNAPSHOT_DRI_H_
8 #include "ui/display/types/display_snapshot.h"
9 #include "ui/ozone/platform/dri/scoped_drm_types.h"
11 namespace ui {
13 class DriWrapper;
15 class DisplaySnapshotDri : public DisplaySnapshot {
16 public:
17 DisplaySnapshotDri(DriWrapper* drm,
18 drmModeConnector* connector,
19 drmModeCrtc* crtc,
20 uint32_t index);
21 ~DisplaySnapshotDri() override;
23 // Native properties of a display used by the DRI implementation in
24 // configuring this display.
25 uint32_t connector() const { return connector_; }
26 uint32_t crtc() const { return crtc_; }
27 drmModePropertyRes* dpms_property() const { return dpms_property_.get(); }
29 // DisplaySnapshot overrides:
30 std::string ToString() const override;
32 private:
33 uint32_t connector_;
34 uint32_t crtc_;
35 ScopedDrmPropertyPtr dpms_property_;
36 std::string name_;
37 bool overscan_flag_;
39 DISALLOW_COPY_AND_ASSIGN(DisplaySnapshotDri);
42 } // namespace ui
44 #endif // UI_OZONE_PLATFORM_DRI_DISPLAY_SNAPSHOT_DRI_H_