Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: client/deps/glbench/src/main.cc

Issue 2757001: Refactored YUV test. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « client/deps/glbench/src/main.h ('k') | client/deps/glbench/src/yuv2rgb.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « client/deps/glbench/src/main.h ('k') | client/deps/glbench/src/yuv2rgb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698