| Flutter iOS Embedder |

Public Member Functions | List of all members
flutter::IOSContextNoop Class Referencefinal

A noop rendering context for usage on simulators without metal support. More...

`#include <ios_context_noop.h>`

Inheritance diagram for flutter::IOSContextNoop:

## Public Member Functions
| IOSContextNoop ()
| ~IOSContextNoop ()
std::unique_ptr< Texture > | CreateExternalTexture (int64_t texture_id, NSObject< FlutterTexture > *texture) override
| Creates an external texture proxy of the appropriate client rendering API. More...
IOSRenderingBackend | GetBackend () const override
| Get the rendering backend used by this context. More...
Public Member Functions inherited from flutter::IOSContext
virtual | ~IOSContext ()
| Collects the context object. This must happen on the thread on which this object was created. More...
virtual std::shared_ptr< impeller::Context > | GetImpellerContext () const
virtual std::shared_ptr< impeller::AiksContext > | GetAiksContext () const

## Additional Inherited Members
Static Public Member Functions inherited from flutter::IOSContext
static std::unique_ptr< IOSContext > | Create (IOSRenderingAPI api, IOSRenderingBackend backend, const std::shared_ptr< const fml::SyncSwitch > &is_gpu_disabled_sync_switch, const Settings &settings)
| Create an iOS context object capable of creating the on-screen and off-screen GPU context for use by Impeller. More...
Protected Member Functions inherited from flutter::IOSContext
| IOSContext ()

## Detailed Description

A noop rendering context for usage on simulators without metal support.

Definition at line 13 of file ios_context_noop.h.

## Constructor & Destructor Documentation

## ◆ IOSContextNoop()

flutter::IOSContextNoop::IOSContextNoop | ( |  | ) |
| default

## ◆ ~IOSContextNoop()

flutter::IOSContextNoop::~IOSContextNoop | ( |  | ) |
| default

## Member Function Documentation

## ◆ CreateExternalTexture()

std::unique_ptr< Texture > flutter::IOSContextNoop::CreateExternalTexture | ( | int64_t | texture_id,
|  | NSObject< FlutterTexture > * | texture
| ) |  |
| overridevirtual

Creates an external texture proxy of the appropriate client rendering API.

Parameters

  [in] | texture_id | The texture identifier
  [in] | texture | The texture

Returns
  The texture proxy if the rendering backend supports embedder provided external textures.

Implements flutter::IOSContext.

Definition at line 24 of file ios_context_noop.mm.

25 {
26 // Don't use FML for logging as it will contain engine specific details. This is a user facing
27 // message.
28 NSLog(@"Flutter: Attempted to composite external texture sources using the noop backend. "
29 @"This backend is only used on simulators. This feature is only available on actual "
30 @"devices where Metal is used for rendering.");
31
32 // Not supported in this backend.
33 return nullptr;
34 }

## ◆ GetBackend()

IOSRenderingBackend flutter::IOSContextNoop::GetBackend | ( |  | ) | const
| overridevirtual

Get the rendering backend used by this context.

Returns
  The rendering backend.

Reimplemented from flutter::IOSContext.

Definition at line 19 of file ios_context_noop.mm.

19 {
20 return IOSRenderingBackend::kImpeller;
21 }
flutter::IOSRenderingBackend::kImpeller
@ kImpeller

References flutter::kImpeller.

The documentation for this class was generated from the following files:

- shell/platform/darwin/ios/ios_context_noop.h
- shell/platform/darwin/ios/ios_context_noop.mm