blob: a08a2d6070871a9a79b22343e02194a8fe4bf7a8 [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/base_view/cpp/view_provider_component.h"
int main(int argc, const char** argv) {
async::Loop loop(&kAsyncLoopConfigAttachToThread);
trace::TraceProvider trace_provider(loop.dispatcher());
scenic::ViewProviderComponent component(
[](scenic::ViewContext context) {
return std::make_unique<examples::SpinningSquareView>(
std::move(context));
},
&loop);
loop.Run();
return 0;
}