Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: gpu/gles2_conform_support/native/main.cc

Issue 6976055: More POSIX support for Chromium, consisting mostly of broadening ifdefs. This (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/gles2_conform_support/gles2_conform_support.gyp ('k') | ipc/sync_socket_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/gles2_conform_support.gyp ('k') | ipc/sync_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698