Flutter Engine
 
Loading...
Searching...
No Matches
context_mtl.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_METAL_CONTEXT_MTL_H_
6#define FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_METAL_CONTEXT_MTL_H_
7
10
11namespace impeller::interop {
12
13class ContextMTL final : public Context {
14 public:
16
18 const std::shared_ptr<impeller::Context>& context);
19
20 // |Context|
21 ~ContextMTL() override;
22
23 ContextMTL(const ContextMTL&) = delete;
24
25 ContextMTL& operator=(const ContextMTL&) = delete;
26
27 const std::shared_ptr<SwapchainTransientsMTL>& GetSwapchainTransients() const;
28
29 private:
30 std::shared_ptr<SwapchainTransientsMTL> swapchain_transients_;
31
32 explicit ContextMTL(const std::shared_ptr<impeller::Context>& context);
33};
34
35} // namespace impeller::interop
36
37#endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_METAL_CONTEXT_MTL_H_
const std::shared_ptr< SwapchainTransientsMTL > & GetSwapchainTransients() const
static ScopedObject< Context > Create()
ContextMTL(const ContextMTL &)=delete
ContextMTL & operator=(const ContextMTL &)=delete