Flutter Engine
 
Loading...
Searching...
No Matches
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
7
8#include <QuartzCore/CALayer.h>
9
10#include <memory>
11
12#include "flutter/fml/logging.h"
15
17
18namespace flutter {
19
20IOSSurfaceNoop::IOSSurfaceNoop(std::shared_ptr<IOSContext> context)
21 : IOSSurface(std::move(context)) {}
22
24
26 return true;
27}
28
30
31std::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
Definition ref_ptr.h:261