overlay_priority_hint.h 771 B

1234567891011121314151617181920212223242526
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_GFX_OVERLAY_PRIORITY_HINT_H_
  5. #define UI_GFX_OVERLAY_PRIORITY_HINT_H_
  6. namespace gfx {
  7. // Provides a hint to a system compositor how it should prioritize this
  8. // overlay. Used only by Wayland.
  9. enum OverlayPriorityHint {
  10. // Overlay promotion is not necessary for this surface.
  11. kNone = 0,
  12. // The overlay could be considered as a candidate for promotion.
  13. kRegular,
  14. // Low latency quad.
  15. kLowLatencyCanvas,
  16. // The overlay contains protected content and requires to be promoted to
  17. // overlay.
  18. kHardwareProtection,
  19. };
  20. } // namespace gfx
  21. #endif // UI_GFX_OVERLAY_PRIORITY_HINT_H_