#include "ui/ozone/platform/wayland/gpu/wayland_overlay_manager.h"
#include "base/logging.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/ozone/platform/wayland/common/wayland_util.h"
#include "ui/ozone/platform/wayland/gpu/wayland_buffer_manager_gpu.h"
#include "ui/ozone/platform/wayland/gpu/wayland_overlay_candidates.h"
#include "ui/ozone/public/overlay_surface_candidate.h"
namespace ui {
namespace {
void NotifyOverlayDelegationLimitedCapabilityOnce() { … }
}
WaylandOverlayManager::WaylandOverlayManager(
WaylandBufferManagerGpu* manager_gpu)
: … { … }
WaylandOverlayManager::~WaylandOverlayManager() = default;
std::unique_ptr<OverlayCandidatesOzone>
WaylandOverlayManager::CreateOverlayCandidates(gfx::AcceleratedWidget widget) { … }
void WaylandOverlayManager::SetContextDelegated() { … }
void WaylandOverlayManager::CheckOverlaySupport(
std::vector<OverlaySurfaceCandidate>* candidates,
gfx::AcceleratedWidget widget) { … }
bool WaylandOverlayManager::CanHandleCandidate(
const OverlaySurfaceCandidate& candidate,
gfx::AcceleratedWidget widget) const { … }
}