OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #if defined(OS_MACOSX) | 10 #if defined(OS_MACOSX) |
11 #include "base/mac/scoped_nsautorelease_pool.h" | 11 #include "base/mac/scoped_nsautorelease_pool.h" |
12 #endif | 12 #endif |
13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #endif | 15 #endif |
16 #include "ui/gl/gl_surface.h" | 16 #include "ui/gl/gl_surface.h" |
17 | 17 |
18 extern "C" { | 18 extern "C" { |
19 #if defined(GLES2_CONFORM_SUPPORT_ONLY) | 19 #if defined(GLES2_CONFORM_SUPPORT_ONLY) |
20 #include "gpu/gles2_conform_support/gtf/gtf_stubs.h" | 20 #include "gpu/gles2_conform_support/gtf/gtf_stubs.h" |
21 #else | 21 #else |
22 #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/GTFMain.h" | 22 #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/GTFMain.h" // nognch
eck |
23 #endif | 23 #endif |
24 } | 24 } |
25 | 25 |
26 int main(int argc, char *argv[]) { | 26 int main(int argc, char *argv[]) { |
27 base::AtExitManager at_exit; | 27 base::AtExitManager at_exit; |
28 base::CommandLine::Init(argc, argv); | 28 base::CommandLine::Init(argc, argv); |
29 base::MessageLoopForUI message_loop; | 29 base::MessageLoopForUI message_loop; |
30 | 30 |
31 base::CommandLine::StringVector args = | 31 base::CommandLine::StringVector args = |
32 base::CommandLine::ForCurrentProcess()->GetArgs(); | 32 base::CommandLine::ForCurrentProcess()->GetArgs(); |
(...skipping 16 matching lines...) Expand all Loading... |
49 argsArray[index+1] = args[index].c_str(); | 49 argsArray[index+1] = args[index].c_str(); |
50 } | 50 } |
51 #endif | 51 #endif |
52 | 52 |
53 GTFMain(static_cast<int>(args.size()+1), | 53 GTFMain(static_cast<int>(args.size()+1), |
54 const_cast<char**>(argsArray.get())); | 54 const_cast<char**>(argsArray.get())); |
55 | 55 |
56 return 0; | 56 return 0; |
57 } | 57 } |
58 | 58 |
OLD | NEW |