Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: ui/ozone/platform/dri/hardware_display_plane.h

Issue 908993003: [Ozone-Dri] Rename DriWrapper to DrmDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@udl3-pass-drm-fd
Patch Set: rebased Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_DRI_HARDWARE_DISPLAY_PLANE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_H_
6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_H_ 6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "ui/ozone/ozone_export.h" 12 #include "ui/ozone/ozone_export.h"
13 #include "ui/ozone/platform/dri/scoped_drm_types.h" 13 #include "ui/ozone/platform/dri/scoped_drm_types.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 class Rect; 16 class Rect;
17 } 17 }
18 18
19 namespace ui { 19 namespace ui {
20 20
21 class DriWrapper; 21 class DrmDevice;
22 22
23 class OZONE_EXPORT HardwareDisplayPlane { 23 class OZONE_EXPORT HardwareDisplayPlane {
24 public: 24 public:
25 HardwareDisplayPlane(ScopedDrmPlanePtr plane); 25 HardwareDisplayPlane(ScopedDrmPlanePtr plane);
26 HardwareDisplayPlane(uint32_t plane_id, uint32_t possible_crtcs); 26 HardwareDisplayPlane(uint32_t plane_id, uint32_t possible_crtcs);
27 27
28 virtual ~HardwareDisplayPlane(); 28 virtual ~HardwareDisplayPlane();
29 29
30 bool Initialize(DriWrapper* drm); 30 bool Initialize(DrmDevice* drm);
31 31
32 bool CanUseForCrtc(uint32_t crtc_index); 32 bool CanUseForCrtc(uint32_t crtc_index);
33 33
34 bool in_use() const { return in_use_; } 34 bool in_use() const { return in_use_; }
35 void set_in_use(bool in_use) { in_use_ = in_use; } 35 void set_in_use(bool in_use) { in_use_ = in_use; }
36 36
37 uint32_t plane_id() const { return plane_id_; } 37 uint32_t plane_id() const { return plane_id_; }
38 38
39 void set_owning_crtc(uint32_t crtc) { owning_crtc_ = crtc; } 39 void set_owning_crtc(uint32_t crtc) { owning_crtc_ = crtc; }
40 uint32_t owning_crtc() const { return owning_crtc_; } 40 uint32_t owning_crtc() const { return owning_crtc_; }
41 41
42 protected: 42 protected:
43 uint32_t plane_id_; 43 uint32_t plane_id_;
44 uint32_t possible_crtcs_; 44 uint32_t possible_crtcs_;
45 uint32_t owning_crtc_; 45 uint32_t owning_crtc_;
46 bool in_use_; 46 bool in_use_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane); 48 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane);
49 }; 49 };
50 50
51 } // namespace ui 51 } // namespace ui
52 52
53 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_H_ 53 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/hardware_display_controller_unittest.cc ('k') | ui/ozone/platform/dri/hardware_display_plane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698