| 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 #include "third_party/skia/include/core/SkSurface.h"
17 #include "third_party/skia/include/utils/mac/SkCGUtils.h"
18
19 FLUTTER_ASSERT_ARC
20
21 namespace flutter {
22
23 IOSSurfaceNoop::IOSSurfaceNoop(std::shared_ptr<IOSContext> context)
24 : IOSSurface(std::move(context)) {}
25
26 IOSSurfaceNoop::~IOSSurfaceNoop() = default;
27
28 bool IOSSurfaceNoop::IsValid() const {
29 return true;
30 }
31
32 void IOSSurfaceNoop::UpdateStorageSizeIfNecessary() {}
33
34 std::unique_ptr<Surface> IOSSurfaceNoop::CreateGPUSurface(GrDirectContext* gr_context) {
35 return std::make_unique<GPUSurfaceNoop>();
36 }
37
38 } // namespace flutter
flutter::IOSSurfaceNoop::IsValid
bool IsValid() const override
Definition: ios_surface_noop.mm:28
flutter::IOSSurfaceNoop::IOSSurfaceNoop
IOSSurfaceNoop(std::shared_ptr< IOSContext > context)
Definition: ios_surface_noop.mm:23
flutter::IOSSurfaceNoop::CreateGPUSurface
std::unique_ptr< Surface > CreateGPUSurface(GrDirectContext *gr_context=nullptr) override
Definition: ios_surface_noop.mm:34
flutter::IOSSurface
Definition: ios_surface.h:21
flutter::IOSSurfaceNoop::~IOSSurfaceNoop
~IOSSurfaceNoop() override
flutter
Definition: accessibility_bridge.h:28
flutter::IOSSurfaceNoop::UpdateStorageSizeIfNecessary
void UpdateStorageSizeIfNecessary() override
Definition: ios_surface_noop.mm:32
FLUTTER_ASSERT_ARC
Definition: FlutterChannelKeyResponder.mm:13
ios_surface_noop.h