| Flutter iOS Embedder |

ios_surface_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_SURFACE_NOOP_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_SURFACE_NOOP_H_
7
8 #import "flutter/shell/platform/darwin/ios/ios_context.h"
9 #import "flutter/shell/platform/darwin/ios/ios_surface.h"
10
11 @class CALayer;
12
13 namespace flutter {
14
15 /// @brief A rendering surface that accepts rendering intent but does not render
16 /// anything.
17 ///
18 /// This is useful for running on platforms that need an engine instance and
19 /// don't have the required drivers.
20 class IOSSurfaceNoop final : public IOSSurface {
21 public:
22 explicit IOSSurfaceNoop(std::shared_ptr<IOSContext> context);
23
24 ~IOSSurfaceNoop() override;
25
26 // |IOSSurface|
27 bool IsValid() const override;
28
29 // |IOSSurface|
30 void UpdateStorageSizeIfNecessary() override;
31
32 // |IOSSurface|
33 std::unique_ptr<Surface> CreateGPUSurface() override;
34
35 private:
36 IOSSurfaceNoop(const IOSSurfaceNoop&) = delete;
37
38 IOSSurfaceNoop& operator=(const IOSSurfaceNoop&) = delete;
39 };
40
41 } // namespace flutter
42
43 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_SURFACE_NOOP_H_
flutter::IOSSurface
Definition: ios_surface.h:20
flutter::IOSSurfaceNoop
A rendering surface that accepts rendering intent but does not render anything.
Definition: ios_surface_noop.h:20
flutter::IOSSurfaceNoop::IsValid
bool IsValid() const override
Definition: ios_surface_noop.mm:25
flutter::IOSSurfaceNoop::CreateGPUSurface
std::unique_ptr< Surface > CreateGPUSurface() override
Definition: ios_surface_noop.mm:31
flutter::IOSSurfaceNoop::IOSSurfaceNoop
IOSSurfaceNoop(std::shared_ptr< IOSContext > context)
Definition: ios_surface_noop.mm:20
flutter::IOSSurfaceNoop::UpdateStorageSizeIfNecessary
void UpdateStorageSizeIfNecessary() override
Definition: ios_surface_noop.mm:29
flutter::IOSSurfaceNoop::~IOSSurfaceNoop
~IOSSurfaceNoop() override
ios_context.h
ios_surface.h
flutter
Definition: accessibility_bridge.h:26