Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / gpu / gles2_conform_support / native / main.cc
blobea1cdf303ceee4d989f1198f3fa04816da4ac9b3
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
3 // found in the LICENSE file.
5 #include "base/at_exit.h"
6 #include "base/command_line.h"
7 #include "base/message_loop/message_loop.h"
8 #if defined(OS_MACOSX)
9 #include "base/mac/scoped_nsautorelease_pool.h"
10 #endif
11 #include "ui/gl/gl_surface.h"
13 extern "C" {
14 #if defined(GLES2_CONFORM_SUPPORT_ONLY)
15 #include "gpu/gles2_conform_support/gtf/gtf_stubs.h"
16 #else
17 #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/GTFMain.h"
18 #endif
21 int main(int argc, char *argv[]) {
22 base::AtExitManager at_exit;
23 CommandLine::Init(argc, argv);
24 base::MessageLoopForUI message_loop;
26 #if defined(OS_MACOSX)
27 base::mac::ScopedNSAutoreleasePool pool;
28 #endif
29 GTFMain(argc, argv);
31 return 0;