1/*
2 * Copyright 2011 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SkApplication.h"
9#include "SkEvent.h"
10#include "SkGraphics.h"
11#include "SkWindow.h"
12
13int main(int argc, char** argv){
14    SkGraphics::Init();
15    SkOSWindow* window = create_sk_window(nullptr, argc, argv);
16
17    // drain any events that occurred before |window| was assigned.
18    while (SkEvent::ProcessEvent());
19
20    // Start normal Skia sequence
21    application_init();
22
23    window->loop();
24
25    delete window;
26    application_term();
27    return 0;
28}
29