blob: 9913cc0423dbddd3b4b3f7ee366ad734781bd7c4 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GFX_OVERLAY_PRIORITY_HINT_H_
#define UI_GFX_OVERLAY_PRIORITY_HINT_H_
#include <stdint.h>
namespace gfx {
// Provides a hint to a system compositor how it should prioritize this
// overlay. Used only by Wayland.
enum OverlayPriorityHint : uint8_t {
// Overlay promotion is not necessary for this surface.
kNone = 0,
// The overlay could be considered as a candidate for promotion.
kRegular,
// Low latency quad.
kLowLatencyCanvas,
// The overlay contains protected content and requires to be promoted to
// overlay.
kHardwareProtection,
// The overlay contains a video. Can be a candidate for promotion.
kVideo,
};
} // namespace gfx
#endif // UI_GFX_OVERLAY_PRIORITY_HINT_H_