| Index: ui/ozone/platform/drm/gpu/overlay_plane.h
|
| diff --git a/ui/ozone/platform/drm/gpu/overlay_plane.h b/ui/ozone/platform/drm/gpu/overlay_plane.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4be105eff67f96b08d9adf4700fe41d23bdf79e2
|
| --- /dev/null
|
| +++ b/ui/ozone/platform/drm/gpu/overlay_plane.h
|
| @@ -0,0 +1,46 @@
|
| +// 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_OVERLAY_PLANE_H_
|
| +#define UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
|
| +
|
| +#include <vector>
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#include "ui/gfx/geometry/rect.h"
|
| +#include "ui/gfx/overlay_transform.h"
|
| +#include "ui/ozone/ozone_export.h"
|
| +
|
| +namespace ui {
|
| +
|
| +class ScanoutBuffer;
|
| +
|
| +struct OverlayPlane;
|
| +typedef std::vector<OverlayPlane> OverlayPlaneList;
|
| +
|
| +struct OZONE_EXPORT OverlayPlane {
|
| + // Simpler constructor for the primary plane.
|
| + explicit OverlayPlane(scoped_refptr<ScanoutBuffer> buffer);
|
| +
|
| + OverlayPlane(scoped_refptr<ScanoutBuffer> buffer,
|
| + int z_order,
|
| + gfx::OverlayTransform plane_transform,
|
| + const gfx::Rect& display_bounds,
|
| + const gfx::RectF& crop_rect);
|
| +
|
| + ~OverlayPlane();
|
| +
|
| + // Returns the primary plane in |overlays|.
|
| + static const OverlayPlane* GetPrimaryPlane(const OverlayPlaneList& overlays);
|
| +
|
| + scoped_refptr<ScanoutBuffer> buffer;
|
| + int z_order = 0;
|
| + gfx::OverlayTransform plane_transform;
|
| + gfx::Rect display_bounds;
|
| + gfx::RectF crop_rect;
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
|
|
|