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)) {
78 dispatch_assert_queue(_mainQueue);
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 {
105 dispatch_assert_queue(_mainQueue);
106 std::unique_lock<std::mutex> lock(_mutex);
127 if (CGSizeEqualToSize(contentSize, size) || CGSizeEqualToSize(contentSize, CGSizeZero)) {
139 notify:(nonnull dispatch_block_t)notify {
140 dispatch_assert_queue_not(_mainQueue);
143 std::unique_lock<std::mutex> lock(_mutex);
155 if (_beginResizeWaiting) {
158 dispatch_async(_mainQueue, ^{
159 std::unique_lock<std::mutex> lock(_mutex);
167- (void)performOnPlatformThread:(nonnull dispatch_block_t)block {
168 std::unique_lock<std::mutex> lock(_mutex);
170 if (_beginResizeWaiting) {
173 dispatch_async(_mainQueue, ^{
174 std::unique_lock<std::mutex> lock(_mutex);
181 dispatch_assert_queue(_mainQueue);
182 std::unique_lock<std::mutex> lock(_mutex);
187 dispatch_assert_queue(_mainQueue);
188 std::unique_lock<std::mutex> lock(_mutex);
193 dispatch_assert_queue(_mainQueue);
194 std::unique_lock<std::mutex> lock(_mutex);
201 std::unique_lock<std::mutex> lock(_mutex);
std::unordered_map< int64_t, CGSize > _contentSizes
std::vector< dispatch_block_t > _scheduledBlocks
nullable instancetype init()
BOOL someViewsHaveFrame()
dispatch_queue_t _mainQueue
BOOL isWaitingWhenMutexIsAvailable()
std::condition_variable _condBlockBeginResize
void blockUntilFrameAvailable()
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