| Flutter iOS Embedder |

ios_context_noop.mm
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 #import "flutter/shell/platform/darwin/ios/ios_context_noop.h"
6 #include "flutter/shell/platform/darwin/ios/rendering_api_selection.h"
7 #include "ios_context.h"
8
9 FLUTTER_ASSERT_ARC
10
11 namespace flutter {
12
13 IOSContextNoop::IOSContextNoop() = default;
14
15 // |IOSContext|
16 IOSContextNoop::~IOSContextNoop() = default;
17
18 // |IOSContext|
19 IOSRenderingBackend IOSContextNoop::GetBackend() const {
20 return IOSRenderingBackend::kImpeller;
21 }
22
23 // |IOSContext|
24 std::unique_ptr<Texture> IOSContextNoop::CreateExternalTexture(int64_t texture_id,
25 NSObject<FlutterTexture>* texture) {
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 }
35
36 } // namespace flutter
flutter::IOSContextNoop::~IOSContextNoop
~IOSContextNoop()
flutter::IOSContextNoop::IOSContextNoop
IOSContextNoop()
flutter::IOSContextNoop::GetBackend
IOSRenderingBackend GetBackend() const override
Get the rendering backend used by this context.
Definition: ios_context_noop.mm:19
flutter::IOSContextNoop::CreateExternalTexture
std::unique_ptr< Texture > CreateExternalTexture(int64_t texture_id, NSObject< FlutterTexture > *texture) override
Creates an external texture proxy of the appropriate client rendering API.
Definition: ios_context_noop.mm:24
ios_context.h
ios_context_noop.h
FLUTTER_ASSERT_ARC
Definition: FlutterChannelKeyResponder.mm:13
flutter
Definition: accessibility_bridge.h:26
flutter::IOSRenderingBackend
IOSRenderingBackend
Definition: rendering_api_selection.h:19
flutter::IOSRenderingBackend::kImpeller
@ kImpeller
rendering_api_selection.h
texture_id
int64_t texture_id
Definition: texture_registrar_unittests.cc:24