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 
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 
17 
18 namespace flutter {
19 
20 IOSSurfaceNoop::IOSSurfaceNoop(std::shared_ptr<IOSContext> context)
21  : IOSSurface(std::move(context)) {}
22 
24 
26  return true;
27 }
28 
30 
31 std::unique_ptr<Surface> IOSSurfaceNoop::CreateGPUSurface() {
32  return std::make_unique<GPUSurfaceNoop>();
33 }
34 
35 } // namespace flutter
bool IsValid() const override
std::unique_ptr< Surface > CreateGPUSurface() override
IOSSurfaceNoop(std::shared_ptr< IOSContext > context)
void UpdateStorageSizeIfNecessary() override