mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 16:48:38 -05:00
core: frontend: Refactor scope_acquire_window_context to scope_acquire_context.
This commit is contained in:
23
src/core/frontend/scope_acquire_context.h
Normal file
23
src/core/frontend/scope_acquire_context.h
Normal file
@ -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
|
Reference in New Issue
Block a user