michael@0: /* michael@0: * Copyright 2011 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #include "SkApplication.h" michael@0: #include "SkEvent.h" michael@0: #include "SkWindow.h" michael@0: michael@0: int main(int argc, char** argv){ michael@0: SkOSWindow* window = create_sk_window(NULL, argc, argv); michael@0: michael@0: // drain any events that occurred before |window| was assigned. michael@0: while (SkEvent::ProcessEvent()); michael@0: michael@0: // Start normal Skia sequence michael@0: application_init(); michael@0: michael@0: window->loop(); michael@0: michael@0: delete window; michael@0: application_term(); michael@0: return 0; michael@0: }