| Flutter iOS Embedder |

ios_context_software.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_SOFTWARE_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_CONTEXT_SOFTWARE_H_
7
8 #include "flutter/fml/macros.h"
9 #import "flutter/shell/platform/darwin/ios/ios_context.h"
10
11 namespace flutter {
12
13 class IOSContextSoftware final : public IOSContext {
14 public:
15 IOSContextSoftware();
16
17 // |IOSContext|
18 ~IOSContextSoftware();
19
20 // |IOSContext|
21 sk_sp<GrDirectContext> CreateResourceContext() override;
22
23 // |IOSContext|
24 sk_sp<GrDirectContext> GetMainContext() const override;
25
26 // |IOSContext|
27 std::unique_ptr<GLContextResult> MakeCurrent() override;
28
29 // |IOSContext|
30 std::unique_ptr<Texture> CreateExternalTexture(
31 int64_t texture_id,
32 fml::scoped_nsobject<NSObject<FlutterTexture>> texture) override;
33
34 private:
35 FML_DISALLOW_COPY_AND_ASSIGN(IOSContextSoftware);
36 };
37
38 } // namespace flutter
39
40 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_CONTEXT_SOFTWARE_H_
flutter::IOSContextSoftware::IOSContextSoftware
IOSContextSoftware()
flutter::IOSContextSoftware::MakeCurrent
std::unique_ptr< GLContextResult > MakeCurrent() override
When using client rendering APIs whose contexts need to be bound to a specific thread,...
Definition: ios_context_software.mm:28
flutter::IOSContextSoftware::CreateResourceContext
sk_sp< GrDirectContext > CreateResourceContext() override
Create a resource context for use on the IO task runner. This resource context is used by Skia to upl...
Definition: ios_context_software.mm:18
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::IOSContextSoftware::~IOSContextSoftware
~IOSContextSoftware()
flutter
Definition: accessibility_bridge.h:28
flutter::IOSContextSoftware
Definition: ios_context_software.h:13
flutter::IOSContextSoftware::CreateExternalTexture
std::unique_ptr< Texture > CreateExternalTexture(int64_t texture_id, fml::scoped_nsobject< NSObject< FlutterTexture >> texture) override
Creates an external texture proxy of the appropriate client rendering API.
Definition: ios_context_software.mm:34
ios_context.h
texture_id
int64_t texture_id
Definition: texture_registrar_unittests.cc:24
flutter::IOSContextSoftware::GetMainContext
sk_sp< GrDirectContext > GetMainContext() const override
Accessor for the Skia context associated with IOSSurfaces and the raster thread.
Definition: ios_context_software.mm:23