blob: 1497d30582d553f83b832a05c2faa08fd8f10fd9 [file] [log] [blame]
// Copyright 2015 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 <memory>
#include "ui/gfx/native_widget_types.h"
namespace ui {
class OverlayCandidatesOzone;
// Responsible for providing the oracles used to decide when overlays can be
// used.
class OverlayManagerOzone {
virtual ~OverlayManagerOzone() {}
// Get the hal struct to check for overlay support.
virtual std::unique_ptr<OverlayCandidatesOzone> CreateOverlayCandidates(
gfx::AcceleratedWidget w) = 0;
// Whether the underlying platform supports deferring compositing of buffers
// via overlays. In cases where overlays are not supported the promotion and
// validation logics can be skipped client side.
virtual bool SupportsOverlays() const = 0;
} // namespace ui