blob: 051285a25b3579586a72b22a09f6c66367d2f055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
#define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
#include <stddef.h>
#include <stdint.h>
#include "base/basictypes.h"
#include "ui/ozone/ozone_export.h"
#include "ui/ozone/platform/drm/common/scoped_drm_types.h"
namespace gfx {
class Rect;
}
namespace ui {
class DrmDevice;
class OZONE_EXPORT HardwareDisplayPlane {
public:
HardwareDisplayPlane(uint32_t plane_id, uint32_t possible_crtcs);
virtual ~HardwareDisplayPlane();
virtual bool Initialize(DrmDevice* drm);
bool CanUseForCrtc(uint32_t crtc_index);
bool in_use() const { return in_use_; }
void set_in_use(bool in_use) { in_use_ = in_use; }
bool is_dummy() const { return is_dummy_; }
void set_is_dummy(bool is_dummy) { is_dummy_ = is_dummy; }
uint32_t plane_id() const { return plane_id_; }
void set_owning_crtc(uint32_t crtc) { owning_crtc_ = crtc; }
uint32_t owning_crtc() const { return owning_crtc_; }
protected:
uint32_t plane_id_;
uint32_t possible_crtcs_;
uint32_t owning_crtc_;
bool in_use_;
bool is_dummy_;
DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane);
};
} // namespace ui
#endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
|