| Index: ui/ozone/platform/drm/gpu/hardware_display_plane.h
|
| diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane.h b/ui/ozone/platform/drm/gpu/hardware_display_plane.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cef1adaed8f90951de93f68ed271db60b6962a08
|
| --- /dev/null
|
| +++ b/ui/ozone/platform/drm/gpu/hardware_display_plane.h
|
| @@ -0,0 +1,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_ = 0;
|
| + uint32_t possible_crtcs_ = 0;
|
| + uint32_t owning_crtc_ = 0;
|
| + bool in_use_ = false;
|
| + bool is_dummy_ = false;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane);
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
|
|
|