blob: 2a67333d071dd6e0898d3d698c96c58f3819a7d9 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Cocoa/Cocoa.h>
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterTextureRegistrar.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterView.h"
#import "flutter/shell/platform/embedder/embedder.h"
/**
* Rendering backend agnostic FlutterRendererConfig provider to be used by the embedder API.
*/
@protocol FlutterRenderer <FlutterTextureRegistry, FlutterTextureRegistrarDelegate>
/**
* Intializes the renderer with the given FlutterEngine.
*/
- (nullable instancetype)initWithFlutterEngine:(nonnull FlutterEngine*)flutterEngine;
/**
* Sets the FlutterView to render to.
*/
- (void)setFlutterView:(nullable FlutterView*)view;
/**
* Creates a FlutterRendererConfig that renders using the appropriate backend.
*/
- (FlutterRendererConfig)createRendererConfig;
@end