Flutter iOS Embedder
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
8
#include "flutter/fml/macros.h"
9
#include "flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalImpeller.h"
10
#include "
flutter/shell/platform/darwin/ios/ios_context.h
"
11
#include "impeller/display_list/aiks_context.h"
12
13
namespace
impeller
{
14
15
class
Context;
16
17
}
// namespace impeller
18
19
namespace
flutter
{
20
21
class
IOSContextMetalImpeller
final :
public
IOSContext
{
22
public
:
23
explicit
IOSContextMetalImpeller
(
24
const
Settings& settings,
25
const
std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch);
26
27
~IOSContextMetalImpeller
();
28
29
private
:
30
FlutterDarwinContextMetalImpeller* darwin_context_metal_impeller_;
31
std::shared_ptr<impeller::AiksContext> aiks_context_;
32
33
// |IOSContext|
34
std::unique_ptr<Texture> CreateExternalTexture(int64_t
texture_id
,
35
NSObject<FlutterTexture>* texture)
override
;
36
37
// |IOSContext|
38
std::shared_ptr<impeller::Context> GetImpellerContext()
const override
;
39
40
// |IOSContext|
41
std::shared_ptr<impeller::AiksContext> GetAiksContext()
const override
;
42
43
FML_DISALLOW_COPY_AND_ASSIGN(
IOSContextMetalImpeller
);
44
};
45
46
}
// namespace flutter
47
48
#endif
// FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_CONTEXT_METAL_IMPELLER_H_
flutter::IOSContext
Manages the lifetime of the on-screen and off-screen rendering contexts on iOS. On-screen contexts ar...
Definition:
ios_context.h:38
flutter::IOSContextMetalImpeller
Definition:
ios_context_metal_impeller.h:21
flutter::IOSContextMetalImpeller::IOSContextMetalImpeller
IOSContextMetalImpeller(const Settings &settings, const std::shared_ptr< const fml::SyncSwitch > &is_gpu_disabled_sync_switch)
flutter::IOSContextMetalImpeller::~IOSContextMetalImpeller
~IOSContextMetalImpeller()
ios_context.h
flutter
Definition:
accessibility_bridge.h:26
impeller
Definition:
ios_context.h:19
texture_id
int64_t texture_id
Definition:
texture_registrar_unittests.cc:24
shell
platform
darwin
ios
ios_context_metal_impeller.h
Generated by
1.9.1