blob: 7ffe61a33e53717e70cab7416bfd47376a402da7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/message_loop.h"
#if defined(OS_MACOSX)
#include "base/mac/scoped_nsautorelease_pool.h"
#endif
#include "gpu/command_buffer/client/gles2_lib.h"
#include "gpu/command_buffer/tests/gl_test_utils.h"
#include "ui/gl/gl_surface.h"
#if defined(TOOLKIT_GTK)
#include "ui/gfx/gtk_util.h"
#endif
int main(int argc, char** argv) {
base::AtExitManager exit_manager;
CommandLine::Init(argc, argv);
#if defined(OS_MACOSX)
base::mac::ScopedNSAutoreleasePool pool;
#endif
#if defined(TOOLKIT_GTK)
gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess());
#endif
gfx::GLSurface::InitializeOneOff();
::gles2::Initialize();
MessageLoop::Type message_loop_type = MessageLoop::TYPE_UI;
MessageLoop main_message_loop(message_loop_type);
return GLTestHelper::RunTests(argc, argv);
}
|