blob: bad1407f99db66cb99fe2b4234e6f804e658a6c8 (
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
|
// 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.
#include "ui/ozone/platform/drm/gpu/hardware_display_plane.h"
#include <drm.h>
#include <xf86drm.h>
#include "base/logging.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/ozone/platform/drm/gpu/drm_device.h"
namespace ui {
HardwareDisplayPlane::HardwareDisplayPlane(uint32_t plane_id,
uint32_t possible_crtcs)
: plane_id_(plane_id),
possible_crtcs_(possible_crtcs),
in_use_(false),
is_dummy_(false) {
}
HardwareDisplayPlane::~HardwareDisplayPlane() {
}
bool HardwareDisplayPlane::CanUseForCrtc(uint32_t crtc_index) {
return possible_crtcs_ & (1 << crtc_index);
}
bool HardwareDisplayPlane::Initialize(DrmDevice* drm) {
return true;
}
} // namespace ui
|