Flutter Engine
 
Loading...
Searching...
No Matches
context.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_CONTEXT_H_
6#define FLUTTER_IMPELLER_TOOLKIT_INTEROP_CONTEXT_H_
7
12
13namespace impeller::interop {
14
16 : public Object<Context, IMPELLER_INTERNAL_HANDLE_NAME(ImpellerContext)> {
17 public:
18 ~Context() override;
19
20 Context(const Context&) = delete;
21
22 Context& operator=(const Context&) = delete;
23
24 bool IsValid() const;
25
26 std::shared_ptr<impeller::Context> GetContext() const;
27
29
31
32 bool IsGL() const;
33
34 bool IsMetal() const;
35
36 bool IsVulkan() const;
37
38 protected:
39 explicit Context(std::shared_ptr<impeller::Context> context);
40
41 private:
42 impeller::AiksContext context_;
43};
44
45} // namespace impeller::interop
46
47#endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_CONTEXT_H_
GLenum type
std::shared_ptr< impeller::Context > GetContext() const
Definition context.cc:20
bool IsBackend(impeller::Context::BackendType type) const
Definition context.cc:28
Context(const Context &)=delete
Context & operator=(const Context &)=delete
AiksContext & GetAiksContext()
Definition context.cc:24