Hash :
52fe3116
Author :
Date :
2023-07-17T16:20:54
Vulkan: Deduplicate share group's context set tracking Bug: angleproject:8224 Change-Id: I7a59a37229682fb91ff777f31e02e05d7ab2b80f Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4690345 Reviewed-by: Charlie Lao <cclao@google.com> Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
//
// Copyright 2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// DisplayImpl.h: Implementation methods of egl::Display
#ifndef LIBANGLE_RENDERER_SHAREGROUPIMPL_H_
#define LIBANGLE_RENDERER_SHAREGROUPIMPL_H_
#include "common/angleutils.h"
#include "libANGLE/ShareGroup.h"
namespace egl
{
class Display;
} // namespace egl
namespace gl
{
class Context;
} // namespace gl
namespace rx
{
class ShareGroupImpl : angle::NonCopyable
{
public:
ShareGroupImpl(const egl::ShareGroupState &state) : mState(state) {}
virtual ~ShareGroupImpl() {}
virtual void onDestroy(const egl::Display *display) {}
virtual void onContextAdd() {}
protected:
const egl::ShareGroupState &mState;
};
} // namespace rx
#endif // LIBANGLE_RENDERER_SHAREGROUPIMPL_H_