blob: 3bbbba5fcca3c66f6299d769c3fdd12dc5c68001 [file] [log] [blame]
// Copyright 2015 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/async-loop/cpp/loop.h>
#include <trace-provider/provider.h>
#include "garnet/examples/ui/spinning_square/spinning_square_view.h"
#include "lib/ui/view_framework/view_provider_app.h"
int main(int argc, const char** argv) {
async::Loop loop(&kAsyncLoopConfigAttachToThread);
trace::TraceProvider trace_provider(loop.dispatcher());
mozart::ViewProviderApp app([](mozart::ViewContext view_context) {
return std::make_unique<examples::SpinningSquareView>(
std::move(view_context.view_manager),
std::move(view_context.view_owner_request));
});
loop.Run();
return 0;
}