~mmach/netext73/webkit2gtk

« back to all changes in this revision

Viewing changes to Source/ThirdParty/ANGLE/src/libANGLE/renderer/OverlayImpl.h

  • Committer: mmach
  • Date: 2023-06-16 17:21:37 UTC
  • Revision ID: netbit73@gmail.com-20230616172137-2rqx6yr96ga9g3kp
1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
 
3
// Use of this source code is governed by a BSD-style license that can be
 
4
// found in the LICENSE file.
 
5
//
 
6
 
 
7
// OverlayImpl.h: Defines the abstract rx::OverlayImpl class.
 
8
 
 
9
#ifndef LIBANGLE_RENDERER_OVERLAYIMPL_H_
 
10
#define LIBANGLE_RENDERER_OVERLAYIMPL_H_
 
11
 
 
12
#include "common/PackedEnums.h"
 
13
#include "common/angleutils.h"
 
14
#include "common/mathutil.h"
 
15
#include "libANGLE/Error.h"
 
16
#include "libANGLE/Observer.h"
 
17
 
 
18
#include <stdint.h>
 
19
 
 
20
namespace gl
 
21
{
 
22
class Context;
 
23
class OverlayState;
 
24
}  // namespace gl
 
25
 
 
26
namespace rx
 
27
{
 
28
class OverlayImpl : angle::NonCopyable
 
29
{
 
30
  public:
 
31
    OverlayImpl(const gl::OverlayState &state) : mState(state) {}
 
32
    virtual ~OverlayImpl() {}
 
33
 
 
34
    virtual void onDestroy(const gl::Context *context) {}
 
35
 
 
36
    virtual angle::Result init(const gl::Context *context);
 
37
 
 
38
  protected:
 
39
    const gl::OverlayState &mState;
 
40
};
 
41
 
 
42
inline angle::Result OverlayImpl::init(const gl::Context *context)
 
43
{
 
44
    return angle::Result::Continue;
 
45
}
 
46
 
 
47
}  // namespace rx
 
48
 
 
49
#endif  // LIBANGLE_RENDERER_OVERLAYIMPL_H_