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

Side by Side Diff: ui/ozone/platform/drm/gpu/hardware_display_plane.h

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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
(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_HARDWARE_DISPLAY_PLANE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include "base/basictypes.h"
12 #include "ui/ozone/ozone_export.h"
13 #include "ui/ozone/platform/drm/common/scoped_drm_types.h"
14
15 namespace gfx {
16 class Rect;
17 }
18
19 namespace ui {
20
21 class DrmDevice;
22
23 class OZONE_EXPORT HardwareDisplayPlane {
24 public:
25 HardwareDisplayPlane(uint32_t plane_id, uint32_t possible_crtcs);
26
27 virtual ~HardwareDisplayPlane();
28
29 virtual bool Initialize(DrmDevice* drm);
30
31 bool CanUseForCrtc(uint32_t crtc_index);
32
33 bool in_use() const { return in_use_; }
34 void set_in_use(bool in_use) { in_use_ = in_use; }
35
36 bool is_dummy() const { return is_dummy_; }
37 void set_is_dummy(bool is_dummy) { is_dummy_ = is_dummy; }
38
39 uint32_t plane_id() const { return plane_id_; }
40
41 void set_owning_crtc(uint32_t crtc) { owning_crtc_ = crtc; }
42 uint32_t owning_crtc() const { return owning_crtc_; }
43
44 protected:
45 uint32_t plane_id_ = 0;
46 uint32_t possible_crtcs_ = 0;
47 uint32_t owning_crtc_ = 0;
48 bool in_use_ = false;
49 bool is_dummy_ = false;
50
51 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane);
52 };
53
54 } // namespace ui
55
56 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc ('k') | ui/ozone/platform/drm/gpu/hardware_display_plane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698