diff options
| author | bunnei <bunneidev@gmail.com> | 2020-02-17 15:38:56 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2020-02-25 21:23:00 -0500 |
| commit | 667f026c9570b772719d2ada94cc40d420113c23 (patch) | |
| tree | 749c65d2e1424156d8cbc82d91c1ce5131d27ca6 /src/core/frontend/scope_acquire_context.h | |
| parent | 2e16c237845bf1b5ff89b7b7a3f8bc1a84729eb1 (diff) | |
core: frontend: Refactor scope_acquire_window_context to scope_acquire_context.
Diffstat (limited to 'src/core/frontend/scope_acquire_context.h')
| -rw-r--r-- | src/core/frontend/scope_acquire_context.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/core/frontend/scope_acquire_context.h b/src/core/frontend/scope_acquire_context.h new file mode 100644 index 000000000..7a65c0623 --- /dev/null +++ b/src/core/frontend/scope_acquire_context.h @@ -0,0 +1,23 @@ +// Copyright 2019 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_types.h" + +namespace Core::Frontend { + +class GraphicsContext; + +/// Helper class to acquire/release window context within a given scope +class ScopeAcquireContext : NonCopyable { +public: + explicit ScopeAcquireContext(Core::Frontend::GraphicsContext& context); + ~ScopeAcquireContext(); + +private: + Core::Frontend::GraphicsContext& context; +}; + +} // namespace Core::Frontend |
