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"
17 #include "third_party/skia/include/core/SkRect.h"
36 @property(nonatomic, assign)
const fml::RefPtr<fml::TaskRunner>&
taskRunner;
46 withId:(NSString*)factoryId
47 gestureRecognizersBlockingPolicy:
51 - (void)beginFrameWithSize:(SkISize)frameSize;
63 - (void)prerollCompositeEmbeddedView:(int64_t)viewId
64 withParams:(std::unique_ptr<
flutter::EmbeddedViewParams>)params;
75 - (
flutter::PostPrerollResult)postPrerollActionWithThreadMerger:
76 (const
fml::RefPtr<
fml::RasterThreadMerger>&)rasterThreadMerger
77 impellerEnabled:(BOOL)impellerEnabled;
83 - (void)endFrameWithResubmit:(BOOL)shouldResubmitFrame
84 threadMerger:(const
fml::RefPtr<
fml::RasterThreadMerger>&)rasterThreadMerger
85 impellerEnabled:(BOOL)impellerEnabled;
90 - (
flutter::DlCanvas*)compositeEmbeddedViewWithId:(int64_t)viewId;
101 - (BOOL)submitFrame:(std::unique_ptr<
flutter::SurfaceFrame>)frame
102 withIosContext:(const std::shared_ptr<
flutter::IOSContext>&)iosContext
103 grContext:(GrDirectContext* _Nullable)grContext;
115 - (void)pushFilterToVisitedPlatformViews:(const std::shared_ptr<
flutter::DlImageFilter>&)filter
116 withRect:(const SkRect&)filterRect;
119 - (void)pushVisitedPlatformViewId:(int64_t)viewId;
125 - (size_t)embeddedViewCount;
132 - (UIView* _Nullable)platformViewForId:(int64_t)viewId;
142 - (void)compositeView:(int64_t)viewId withParams:(const
flutter::EmbeddedViewParams&)params;
144 - (const
flutter::EmbeddedViewParams&)compositionParamsForView:(int64_t)viewId;
150 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMVIEWSCONTROLLER_H_