5#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterThreadSynchronizer.h"
7#import <QuartzCore/QuartzCore.h>
10#include <unordered_map>
13#import "flutter/fml/logging.h"
14#import "flutter/fml/synchronization/waitable_event.h"
34- (
BOOL)allViewsHaveFrame;
41- (
BOOL)someViewsHaveFrame;
48 return [
self initWithMainQueue:dispatch_get_main_queue()];
51- (instancetype)initWithMainQueue:(dispatch_queue_t)queue {
60 for (
auto const& [viewIdentifier, contentSize] :
_contentSizes) {
61 if (CGSizeEqualToSize(contentSize, CGSizeZero)) {
69 for (
auto const& [viewIdentifier, contentSize] :
_contentSizes) {
70 if (!CGSizeEqualToSize(contentSize, CGSizeZero)) {
80 [CATransaction begin];
81 [CATransaction setDisableActions:YES];
85 [CATransaction commit];
90 std::unique_lock<std::mutex> lock(
_mutex);
104 notify:(nonnull dispatch_block_t)notify {
106 std::unique_lock<std::mutex> lock(
_mutex);
127 if (CGSizeEqualToSize(contentSize,
size) || CGSizeEqualToSize(contentSize, CGSizeZero)) {
139 notify:(nonnull dispatch_block_t)notify {
143 std::unique_lock<std::mutex> lock(
_mutex);
159 std::unique_lock<std::mutex> lock(
_mutex);
167- (void)performOnPlatformThread:(nonnull dispatch_block_t)block {
168 std::unique_lock<std::mutex> lock(
_mutex);
174 std::unique_lock<std::mutex> lock(
_mutex);
182 std::unique_lock<std::mutex> lock(
_mutex);
188 std::unique_lock<std::mutex> lock(
_mutex);
194 std::unique_lock<std::mutex> lock(
_mutex);
201 std::unique_lock<std::mutex> lock(
_mutex);
void blockUntilFrameAvailable()
BOOL isWaitingWhenMutexIsAvailable()
std::unordered_map< int64_t, CGSize > _contentSizes
std::vector< dispatch_block_t > _scheduledBlocks
BOOL someViewsHaveFrame()
dispatch_queue_t _mainQueue
std::condition_variable _condBlockBeginResize
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