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.
7
// OverlayImpl.h: Defines the abstract rx::OverlayImpl class.
9
#ifndef LIBANGLE_RENDERER_OVERLAYIMPL_H_
10
#define LIBANGLE_RENDERER_OVERLAYIMPL_H_
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"
28
class OverlayImpl : angle::NonCopyable
31
OverlayImpl(const gl::OverlayState &state) : mState(state) {}
32
virtual ~OverlayImpl() {}
34
virtual void onDestroy(const gl::Context *context) {}
36
virtual angle::Result init(const gl::Context *context);
39
const gl::OverlayState &mState;
42
inline angle::Result OverlayImpl::init(const gl::Context *context)
44
return angle::Result::Continue;
49
#endif // LIBANGLE_RENDERER_OVERLAYIMPL_H_