blob: 3f5057ab0ad628a42c64b67f88f79644b9a72554 [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 "flutter/shell/platform/darwin/macos/framework/Source/FlutterCompositor.h"
#include "flutter/fml/logging.h"
namespace flutter {
FlutterCompositor::FlutterCompositor(FlutterViewController* view_controller) {
FML_CHECK(view_controller != nullptr) << "FlutterViewController* cannot be nullptr";
view_controller_ = view_controller;
}
void FlutterCompositor::SetPresentCallback(
const FlutterCompositor::PresentCallback& present_callback) {
present_callback_ = present_callback;
}
} // namespace flutter