blob: f0a8edc2e4f24096107880fd35c43c183f3e097f [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 <trace-provider/provider.h>
#include "garnet/examples/ui/shapes/shapes_view.h"
#include "lib/ui/view_framework/view_provider_app.h"
#include "lib/fsl/tasks/message_loop.h"
int main(int argc, const char** argv) {
fsl::MessageLoop loop;
trace::TraceProvider trace_provider(loop.async());
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;
}