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

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

Issue 2122020: Fixes for GLES systems. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: ...and removed bogus #-I from Makefile Created 10 years, 7 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/teartest.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 SetBasePathFromArgv0(argv[0], "src"); 52 SetBasePathFromArgv0(argv[0], "src");
53 ParseArgs(argc, argv); 53 ParseArgs(argc, argv);
54 if (!Init()) { 54 if (!Init()) {
55 printf("# Failed to initialize.\n"); 55 printf("# Failed to initialize.\n");
56 return 1; 56 return 1;
57 } 57 }
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 glbench::GetFillRateTest(), 63 glbench::GetFillRateTest(),
64 glbench::GetTriangleSetupTest(),
65 glbench::GetWindowManagerCompositingTest(false),
66 glbench::GetWindowManagerCompositingTest(true),
67 #endif
63 glbench::GetYuvToRgbTest(1, "yuv_shader_1"), 68 glbench::GetYuvToRgbTest(1, "yuv_shader_1"),
64 glbench::GetYuvToRgbTest(2, "yuv_shader_2"), 69 glbench::GetYuvToRgbTest(2, "yuv_shader_2"),
65 glbench::GetReadPixelTest(), 70 glbench::GetReadPixelTest(),
66 glbench::GetTriangleSetupTest(),
67 glbench::GetAttributeFetchShaderTest(), 71 glbench::GetAttributeFetchShaderTest(),
68 glbench::GetVaryingsAndDdxyShaderTest(), 72 glbench::GetVaryingsAndDdxyShaderTest(),
69 glbench::GetWindowManagerCompositingTest(false),
70 glbench::GetWindowManagerCompositingTest(true),
71 glbench::GetTextureUpdateTest(), 73 glbench::GetTextureUpdateTest(),
72 }; 74 };
73 75
74 for (unsigned int i = 0; i < arraysize(tests); i++) { 76 for (unsigned int i = 0; i < arraysize(tests); i++) {
75 InitContext(); 77 InitContext();
76 tests[i]->Run(); 78 tests[i]->Run();
77 DestroyContext(); 79 DestroyContext();
78 delete tests[i]; 80 delete tests[i];
79 tests[i] = NULL; 81 tests[i] = NULL;
80 } 82 }
81 83
82 return 0; 84 return 0;
83 } 85 }
OLDNEW
« no previous file with comments | « client/deps/glbench/src/main.h ('k') | client/deps/glbench/src/teartest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698