Flutter Engine
 
Loading...
Searching...
No Matches
ios_context_metal_impeller.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_SHELL_PLATFORM_DARWIN_IOS_IOS_CONTEXT_METAL_IMPELLER_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_CONTEXT_METAL_IMPELLER_H_
7
12
13namespace impeller {
14
15class Context;
16
17} // namespace impeller
18
19namespace flutter {
20
21class IOSContextMetalImpeller final : public IOSContext {
22 public:
24 const Settings& settings,
25 const std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch);
26
28
30
31 private:
32 FlutterDarwinContextMetalImpeller* darwin_context_metal_impeller_;
33 std::shared_ptr<impeller::AiksContext> aiks_context_;
34
35 // |IOSContext|
36 std::unique_ptr<Texture> CreateExternalTexture(int64_t texture_id,
37 NSObject<FlutterTexture>* texture) override;
38
39 // |IOSContext|
40 std::shared_ptr<impeller::Context> GetImpellerContext() const override;
41
42 // |IOSContext|
43 std::shared_ptr<impeller::AiksContext> GetAiksContext() const override;
44
46};
47
48} // namespace flutter
49
50#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_CONTEXT_METAL_IMPELLER_H_
Manages the lifetime of the on-screen and off-screen rendering contexts on iOS. On-screen contexts ar...
Definition ios_context.h:39
IOSContextMetalImpeller(const Settings &settings, const std::shared_ptr< const fml::SyncSwitch > &is_gpu_disabled_sync_switch)
IOSRenderingBackend GetBackend() const override
Get the rendering backend used by this context.
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
FlTexture * texture
int64_t texture_id