OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/at_exit.h" |
| 6 #include "base/message_loop.h" |
| 7 |
| 8 #if defined(OS_LINUX) |
| 9 #include <gtk/gtk.h> |
| 10 #endif // OS_LINUX |
| 11 |
| 12 extern "C" { |
| 13 #if defined(GLES2_CONFORM_SUPPORT_ONLY) |
| 14 #include "gpu/gles2_conform_support/gtf/gtf_stubs.h" |
| 15 #else |
| 16 #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/GTFMain.h" |
| 17 #endif |
| 18 } |
| 19 |
| 20 int main(int argc, char *argv[]) { |
| 21 #if defined(OS_LINUX) |
| 22 gtk_init(&argc, &argv); |
| 23 #endif // OS_LINUX |
| 24 |
| 25 base::AtExitManager at_exit; |
| 26 MessageLoopForUI message_loop; |
| 27 |
| 28 GTFMain(argc, argv); |
| 29 |
| 30 return 0; |
| 31 } |
| 32 |
OLD | NEW |