5#ifndef FLUTTER_TESTING_TEST_METAL_CONTEXT_H_
6#define FLUTTER_TESTING_TEST_METAL_CONTEXT_H_
12#include <Metal/Metal.h>
15#include "third_party/skia/include/gpu/ganesh/GrDirectContext.h"
16#include "third_party/skia/include/ports/SkCFObject.h"
20struct MetalObjCFields;
47 id<MTLDevice> device_;
48 id<MTLCommandQueue> command_queue_;
49 sk_sp<GrDirectContext> skia_context_;
50 std::mutex textures_mutex_;
51 int64_t texture_id_ctr_ = 1;
52 std::map<int64_t, sk_cfp<void*>> textures_;
id< MTLDevice > GetMetalDevice() const
id< MTLCommandQueue > GetMetalCommandQueue() const
TextureInfo GetTextureInfo(int64_t texture_id)
TextureInfo CreateMetalTexture(const DlISize &size)
Returns texture_id = -1 when texture creation fails.
sk_sp< GrDirectContext > GetSkiaContext() const
bool Present(int64_t texture_id)
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all 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