| Flutter Impeller |

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
8 #include "impeller/display_list/aiks_context.h"
9 #include "impeller/renderer/context.h"
10 #include "impeller/toolkit/interop/impeller.h"
11 #include "impeller/toolkit/interop/object.h"
12
13 namespace impeller::interop {
14
15 class Context
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
28 AiksContext& GetAiksContext();
29
30 bool IsBackend(impeller::Context::BackendType type) const;
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_
aiks_context.h
type
GLenum type
Definition: blit_command_gles.cc:153
impeller::AiksContext
Definition: aiks_context.h:20
impeller::Context::BackendType
BackendType
Definition: context.h:67
impeller::interop::Context
Definition: context.h:16
impeller::interop::Context::IsMetal
bool IsMetal() const
Definition: context.cc:39
impeller::interop::Context::GetContext
std::shared_ptr< impeller::Context > GetContext() const
Definition: context.cc:20
impeller::interop::Context::IsBackend
bool IsBackend(impeller::Context::BackendType type) const
Definition: context.cc:28
impeller::interop::Context::IsVulkan
bool IsVulkan() const
Definition: context.cc:43
impeller::interop::Context::IsValid
bool IsValid() const
Definition: context.cc:16
impeller::interop::Context::IsGL
bool IsGL() const
Definition: context.cc:35
impeller::interop::Context::Context
Context(const Context &)=delete
impeller::interop::Context::~Context
~Context() override
impeller::interop::Context::GetAiksContext
AiksContext & GetAiksContext()
Definition: context.cc:24
impeller::interop::Context::operator=
Context & operator=(const Context &)=delete
impeller::interop::Object
Definition: object.h:56
impeller.h
impeller::interop
Definition: context_gles.cc:12
object.h
context.h