blob: c966c40eba2e59123c87fcd5fea4f2a229eebd8f [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/shapes/shapes_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::ShapesView>(
std::move(view_context.view_manager),
std::move(view_context.view_owner_request));
});
loop.Run();
return 0;
}