| Flutter iOS Embedder |

ios_surface_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_surface_noop.h"
6 #include "shell/gpu/gpu_surface_noop.h"
7
8 #include <QuartzCore/CALayer.h>
9
10 #include <memory>
11
12 #include "flutter/fml/logging.h"
13 #include "flutter/fml/platform/darwin/cf_utils.h"
14 #include "flutter/fml/trace_event.h"
15
16 FLUTTER_ASSERT_ARC
17
18 namespace flutter {
19
20 IOSSurfaceNoop::IOSSurfaceNoop(std::shared_ptr<IOSContext> context)
21 : IOSSurface(std::move(context)) {}
22
23 IOSSurfaceNoop::~IOSSurfaceNoop() = default;
24
25 bool IOSSurfaceNoop::IsValid() const {
26 return true;
27 }
28
29 void IOSSurfaceNoop::UpdateStorageSizeIfNecessary() {}
30
31 std::unique_ptr<Surface> IOSSurfaceNoop::CreateGPUSurface() {
32 return std::make_unique<GPUSurfaceNoop>();
33 }
34
35 } // namespace flutter
flutter::IOSSurface
Definition: ios_surface.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_surface_noop.h
FLUTTER_ASSERT_ARC
Definition: FlutterChannelKeyResponder.mm:13
flutter
Definition: accessibility_bridge.h:26