OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 <fcntl.h> | 5 #include <fcntl.h> |
6 #include <stdio.h> | 6 #include <stdio.h> |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <sys/mman.h> | 9 #include <sys/mman.h> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 glbench::TestBase* tests[] = { | 59 glbench::TestBase* tests[] = { |
60 glbench::GetSwapTest(), | 60 glbench::GetSwapTest(), |
61 glbench::GetClearTest(), | 61 glbench::GetClearTest(), |
62 #if defined(USE_OPENGL) | 62 #if defined(USE_OPENGL) |
63 glbench::GetFillRateTest(), | 63 glbench::GetFillRateTest(), |
64 glbench::GetTriangleSetupTest(), | 64 glbench::GetTriangleSetupTest(), |
65 glbench::GetWindowManagerCompositingTest(false), | 65 glbench::GetWindowManagerCompositingTest(false), |
66 glbench::GetWindowManagerCompositingTest(true), | 66 glbench::GetWindowManagerCompositingTest(true), |
67 #endif | 67 #endif |
68 glbench::GetYuvToRgbTest(1, "yuv_shader_1"), | 68 glbench::GetYuvToRgbTest(), |
69 glbench::GetYuvToRgbTest(2, "yuv_shader_2"), | |
70 glbench::GetReadPixelTest(), | 69 glbench::GetReadPixelTest(), |
71 glbench::GetAttributeFetchShaderTest(), | 70 glbench::GetAttributeFetchShaderTest(), |
72 glbench::GetVaryingsAndDdxyShaderTest(), | 71 glbench::GetVaryingsAndDdxyShaderTest(), |
73 glbench::GetTextureUpdateTest(), | 72 glbench::GetTextureUpdateTest(), |
74 }; | 73 }; |
75 | 74 |
76 for (unsigned int i = 0; i < arraysize(tests); i++) { | 75 for (unsigned int i = 0; i < arraysize(tests); i++) { |
77 InitContext(); | 76 InitContext(); |
78 tests[i]->Run(); | 77 tests[i]->Run(); |
79 DestroyContext(); | 78 DestroyContext(); |
80 delete tests[i]; | 79 delete tests[i]; |
81 tests[i] = NULL; | 80 tests[i] = NULL; |
82 } | 81 } |
83 | 82 |
84 return 0; | 83 return 0; |
85 } | 84 } |
OLD | NEW |