| Flutter iOS Embedder |

ios_context_noop.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_NOOP_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_CONTEXT_NOOP_H_
7
8 #import "flutter/shell/platform/darwin/ios/ios_context.h"
9
10 namespace flutter {
11
12 /// @brief A noop rendering context for usage on simulators without metal support.
13 class IOSContextNoop final : public IOSContext {
14 public:
15 IOSContextNoop();
16
17 // |IOSContext|
18 ~IOSContextNoop();
19
20 // |IOSContext|
21 std::unique_ptr<Texture> CreateExternalTexture(int64_t texture_id,
22 NSObject<FlutterTexture>* texture) override;
23
24 IOSRenderingBackend GetBackend() const override;
25
26 private:
27 IOSContextNoop(const IOSContextNoop&) = delete;
28
29 IOSContextNoop& operator=(const IOSContextNoop&) = delete;
30 };
31
32 } // namespace flutter
33
34 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_CONTEXT_NOOP_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:39
flutter::IOSContextNoop
A noop rendering context for usage on simulators without metal support.
Definition: ios_context_noop.h:13
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
flutter
Definition: accessibility_bridge.h:26
flutter::IOSRenderingBackend
IOSRenderingBackend
Definition: rendering_api_selection.h:19
texture_id
int64_t texture_id
Definition: texture_registrar_unittests.cc:24