display_context.h 677 B

1234567891011121314151617181920212223
  1. // Copyright 2019 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 GPU_IPC_SERVICE_DISPLAY_CONTEXT_H_
  5. #define GPU_IPC_SERVICE_DISPLAY_CONTEXT_H_
  6. #include "gpu/ipc/service/gpu_ipc_service_export.h"
  7. namespace gpu {
  8. // Interface for something representing a display compositor context on the GPU
  9. // thread. The interface is used to force context loss if necessary.
  10. class GPU_IPC_SERVICE_EXPORT DisplayContext {
  11. public:
  12. virtual ~DisplayContext() = default;
  13. virtual void MarkContextLost() = 0;
  14. };
  15. } // namespace gpu
  16. #endif // GPU_IPC_SERVICE_DISPLAY_CONTEXT_H_