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 <stdio.h> | 5 #include <stdio.h> |
6 #include <cmath> | 6 #include <cmath> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
11 #include <GLES2/gl2ext.h> | 11 #include <GLES2/gl2ext.h> |
12 #include <GLES2/gl2extchromium.h> | 12 #include <GLES2/gl2extchromium.h> |
13 | 13 |
14 #include "base/at_exit.h" | 14 #include "base/at_exit.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "content/common/gpu/client/gl_helper.h" | 19 #include "content/common/gpu/client/gl_helper.h" |
20 #include "content/common/gpu/client/gl_helper_scaling.h" | 20 #include "content/common/gpu/client/gl_helper_scaling.h" |
21 #include "content/public/test/unittest_test_suite.h" | 21 #include "content/public/test/unittest_test_suite.h" |
22 #include "content/test/content_test_suite.h" | 22 #include "content/test/content_test_suite.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
25 #include "third_party/skia/include/core/SkTypes.h" | 25 #include "third_party/skia/include/core/SkTypes.h" |
26 #include "ui/gl/gl_surface.h" | 26 #include "ui/gl/gl_surface.h" |
27 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" | 27 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.
h" |
28 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 28 #include "webkit/common/gpu/webgraphicscontext3d_in_process_impl.h" |
29 | 29 |
30 #if defined(OS_MACOSX) | 30 #if defined(OS_MACOSX) |
31 #include "base/mac/scoped_nsautorelease_pool.h" | 31 #include "base/mac/scoped_nsautorelease_pool.h" |
32 #endif | 32 #endif |
33 | 33 |
34 #if defined(TOOLKIT_GTK) | 34 #if defined(TOOLKIT_GTK) |
35 #include "ui/gfx/gtk_util.h" | 35 #include "ui/gfx/gtk_util.h" |
36 #endif | 36 #endif |
37 | 37 |
38 namespace content { | 38 namespace content { |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 #if defined(OS_MACOSX) | 942 #if defined(OS_MACOSX) |
943 base::mac::ScopedNSAutoreleasePool pool; | 943 base::mac::ScopedNSAutoreleasePool pool; |
944 #endif | 944 #endif |
945 #if defined(TOOLKIT_GTK) | 945 #if defined(TOOLKIT_GTK) |
946 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); | 946 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); |
947 #endif | 947 #endif |
948 gfx::GLSurface::InitializeOneOff(); | 948 gfx::GLSurface::InitializeOneOff(); |
949 | 949 |
950 return content::UnitTestTestSuite(suite).Run(); | 950 return content::UnitTestTestSuite(suite).Run(); |
951 } | 951 } |
OLD | NEW |