5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMVIEWSCONTROLLER_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMVIEWSCONTROLLER_H_
8 #include <Metal/Metal.h>
10 #include <unordered_map>
11 #include <unordered_set>
13 #include "flutter/flow/surface.h"
14 #include "flutter/fml/task_runner.h"
15 #include "flutter/fml/trace_event.h"
16 #include "impeller/base/thread_safety.h"
35 @property(nonatomic, assign)
const fml::RefPtr<fml::TaskRunner>&
taskRunner;
45 withId:(NSString*)factoryId
46 gestureRecognizersBlockingPolicy:
50 - (void)beginFrameWithSize:(SkISize)frameSize;
62 - (void)prerollCompositeEmbeddedView:(int64_t)viewId
63 withParams:(std::unique_ptr<
flutter::EmbeddedViewParams>)params;
74 - (
flutter::PostPrerollResult)postPrerollActionWithThreadMerger:
75 (const
fml::RefPtr<
fml::RasterThreadMerger>&)rasterThreadMerger;
81 - (void)endFrameWithResubmit:(BOOL)shouldResubmitFrame
82 threadMerger:(const
fml::RefPtr<
fml::RasterThreadMerger>&)rasterThreadMerger;
87 - (
flutter::DlCanvas*)compositeEmbeddedViewWithId:(int64_t)viewId;
98 - (BOOL)submitFrame:(std::unique_ptr<
flutter::SurfaceFrame>)frame
99 withIosContext:(const std::shared_ptr<
flutter::IOSContext>&)iosContext;
111 - (void)pushFilterToVisitedPlatformViews:(const std::shared_ptr<
flutter::DlImageFilter>&)filter
112 withRect:(const SkRect&)filterRect;
115 - (void)pushVisitedPlatformViewId:(int64_t)viewId;
121 - (size_t)embeddedViewCount;
128 - (UIView* _Nullable)platformViewForId:(int64_t)viewId;
138 - (void)compositeView:(int64_t)viewId withParams:(const
flutter::EmbeddedViewParams&)params;
140 - (const
flutter::EmbeddedViewParams&)compositionParamsForView:(int64_t)viewId;
142 - (std::vector<int64_t>&)previousCompositionOrder;
148 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMVIEWSCONTROLLER_H_