5#ifndef FLUTTER_SHELL_GPU_GPU_SURFACE_METAL_SKIA_H_
6#define FLUTTER_SHELL_GPU_GPU_SURFACE_METAL_SKIA_H_
10#include "flutter/flow/surface.h"
11#include "flutter/fml/macros.h"
12#include "flutter/shell/gpu/gpu_surface_metal_delegate.h"
21 bool render_to_surface =
true);
27 bool IsValid()
override;
38 bool render_to_surface_ =
true;
39 bool disable_partial_repaint_ =
false;
43 std::map<uintptr_t, SkIRect> damage_;
46 std::unique_ptr<SurfaceFrame> AcquireFrame(
const SkISize&
size)
override;
49 SkMatrix GetRootTransformation()
const override;
55 std::unique_ptr<GLContextResult> MakeRenderContextCurrent()
override;
58 bool AllowsDrawingWhenGpuDisabled()
const override;
60 std::unique_ptr<SurfaceFrame> AcquireFrameFromCAMetalLayer(
63 std::unique_ptr<SurfaceFrame> AcquireFrameFromMTLTexture(
66 void PrecompileKnownSkSLsIfNecessary();
Abstract Base Class that represents where we will be rendering content.
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
SK_API GrDirectContext * GetContext(const SkImage *src)
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