ozone: fix HDPMLegacy - do the PF after overlays, also clear old overlays
[chromium-blink-merge.git] / ui / ozone / platform / dri / display_mode_dri.h
blobd37f8e211c872b78f81e7b61aa61e66012426990
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_MODE_DRI_H_
6 #define UI_OZONE_PLATFORM_DRI_DISPLAY_MODE_DRI_H_
8 #include <stdint.h>
9 #include <stdlib.h>
10 #include <xf86drmMode.h>
12 #include "ui/display/types/display_mode.h"
14 namespace ui {
16 class DisplayModeDri : public DisplayMode {
17 public:
18 DisplayModeDri(const drmModeModeInfo& mode);
19 ~DisplayModeDri() override;
21 // Native details about this mode. Only used internally in the DRI
22 // implementation.
23 drmModeModeInfo mode_info() const { return mode_info_; }
25 private:
26 drmModeModeInfo mode_info_;
28 DISALLOW_COPY_AND_ASSIGN(DisplayModeDri);
31 } // namespace ui
33 #endif // UI_OZONE_PLATFORM_DRI_DISPLAY_MODE_DRI_H_