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