summaryrefslogtreecommitdiff
path: root/chromium/gpu/ipc/service/display_context.h
blob: 1fc2b7e937d56b2622ed9489df45138e6a6b3a21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2019 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.

#ifndef GPU_IPC_SERVICE_DISPLAY_CONTEXT_H_
#define GPU_IPC_SERVICE_DISPLAY_CONTEXT_H_

#include "gpu/ipc/service/gpu_ipc_service_export.h"

namespace gpu {

// Interface for something representing a display compositor context on the GPU
// thread. The interface is used to force context loss if necessary.
class GPU_IPC_SERVICE_EXPORT DisplayContext {
 public:
  virtual ~DisplayContext() = default;

  virtual void MarkContextLost() = 0;
};

}  // namespace gpu

#endif  //  GPU_IPC_SERVICE_DISPLAY_CONTEXT_H_