diff --git a/engine/src/flutter/impeller/host/BUILD.gn b/engine/src/flutter/impeller/host/BUILD.gn index aead6039aa9..483d1f391dc 100644 --- a/engine/src/flutter/impeller/host/BUILD.gn +++ b/engine/src/flutter/impeller/host/BUILD.gn @@ -38,5 +38,6 @@ executable("host") { ":impeller_host_shaders", "//flutter/fml", "//flutter/impeller/impeller", + "//third_party/glfw", ] } diff --git a/engine/src/flutter/impeller/host/main.mm b/engine/src/flutter/impeller/host/main.mm index 77cd7b0eaa3..12aaa3c93c5 100644 --- a/engine/src/flutter/impeller/host/main.mm +++ b/engine/src/flutter/impeller/host/main.mm @@ -6,7 +6,8 @@ #include "impeller_host_view_controller.h" -@interface ImpellerAppDelegate : NSObject { +@interface ImpellerAppDelegate + : NSObject { NSWindow* window_; ImpellerHostViewController* view_controller_; } @@ -17,11 +18,11 @@ - (id)init { if (self = [super init]) { view_controller_ = [[ImpellerHostViewController alloc] init]; - window_ = - [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 800, 600) - styleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskClosable - backing:NSBackingStoreBuffered - defer:NO]; + window_ = [[NSWindow alloc] + initWithContentRect:NSMakeRect(0, 0, 800, 600) + styleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskClosable + backing:NSBackingStoreBuffered + defer:NO]; [window_ setContentViewController:view_controller_]; } return self; @@ -48,7 +49,9 @@ int main(int argc, const char* argv[]) { [item.submenu addItem:[[NSMenuItem alloc] initWithTitle:[@"Quit " - stringByAppendingString:[NSProcessInfo processInfo].processName] + stringByAppendingString:[NSProcessInfo + processInfo] + .processName] action:@selector(terminate:) keyEquivalent:@"q"]]; ImpellerAppDelegate* appDelegate = [[ImpellerAppDelegate alloc] init];