Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
gpu_surface_software.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_GPU_GPU_SURFACE_SOFTWARE_H_
6#define FLUTTER_SHELL_GPU_GPU_SURFACE_SOFTWARE_H_
7
8#include "flutter/flow/surface.h"
9#include "flutter/fml/macros.h"
10#include "flutter/fml/memory/weak_ptr.h"
11#include "flutter/shell/gpu/gpu_surface_software_delegate.h"
12
13namespace flutter {
14
16 public:
18 bool render_to_surface);
19
21
22 // |Surface|
23 bool IsValid() override;
24
25 // |Surface|
26 std::unique_ptr<SurfaceFrame> AcquireFrame(const SkISize& size) override;
27
28 // |Surface|
29 SkMatrix GetRootTransformation() const override;
30
31 // |Surface|
32 GrDirectContext* GetContext() override;
33
34 private:
36 // TODO(38466): Refactor GPU surface APIs take into account the fact that an
37 // external view embedder may want to render to the root surface. This is a
38 // hack to make avoid allocating resources for the root surface when an
39 // external view embedder is present.
40 const bool render_to_surface_;
43};
44
45} // namespace flutter
46
47#endif // FLUTTER_SHELL_GPU_GPU_SURFACE_SOFTWARE_H_
Interface implemented by all platform surfaces that can present a software backing store to the "scre...
SkMatrix GetRootTransformation() const override
GrDirectContext * GetContext() override
std::unique_ptr< SurfaceFrame > AcquireFrame(const SkISize &size) override
Abstract Base Class that represents where we will be rendering content.
Definition surface.h:24
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259