xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/ShareGroupImpl.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2014 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 // DisplayImpl.h: Implementation methods of egl::Display
8 
9 #ifndef LIBANGLE_RENDERER_SHAREGROUPIMPL_H_
10 #define LIBANGLE_RENDERER_SHAREGROUPIMPL_H_
11 
12 #include "common/angleutils.h"
13 #include "libANGLE/ShareGroup.h"
14 
15 namespace egl
16 {
17 class Display;
18 }  // namespace egl
19 
20 namespace gl
21 {
22 class Context;
23 }  // namespace gl
24 
25 namespace rx
26 {
27 class ShareGroupImpl : angle::NonCopyable
28 {
29   public:
ShareGroupImpl(const egl::ShareGroupState & state)30     ShareGroupImpl(const egl::ShareGroupState &state) : mState(state) {}
~ShareGroupImpl()31     virtual ~ShareGroupImpl() {}
onDestroy(const egl::Display * display)32     virtual void onDestroy(const egl::Display *display) {}
33 
onContextAdd()34     virtual void onContextAdd() {}
35 
36   protected:
37     const egl::ShareGroupState &mState;
38 };
39 }  // namespace rx
40 
41 #endif  // LIBANGLE_RENDERER_SHAREGROUPIMPL_H_
42