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

Side by Side Diff: bench/nanobench.cpp

Issue 1306823003: skia: add ability to load command_buffer_gles2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: and NULL->nullptr, just because. Created 5 years, 3 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 | « no previous file | dm/DM.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include <ctype.h> 8 #include <ctype.h>
9 9
10 #include "nanobench.h" 10 #include "nanobench.h"
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 GPU_CONFIG(msaa4, kNative_GLContextType, 4, false) 436 GPU_CONFIG(msaa4, kNative_GLContextType, 4, false)
437 GPU_CONFIG(msaa16, kNative_GLContextType, 16, false) 437 GPU_CONFIG(msaa16, kNative_GLContextType, 16, false)
438 GPU_CONFIG(nvprmsaa4, kNVPR_GLContextType, 4, false) 438 GPU_CONFIG(nvprmsaa4, kNVPR_GLContextType, 4, false)
439 GPU_CONFIG(nvprmsaa16, kNVPR_GLContextType, 16, false) 439 GPU_CONFIG(nvprmsaa16, kNVPR_GLContextType, 16, false)
440 GPU_CONFIG(gpudft, kNative_GLContextType, 0, true) 440 GPU_CONFIG(gpudft, kNative_GLContextType, 0, true)
441 GPU_CONFIG(debug, kDebug_GLContextType, 0, false) 441 GPU_CONFIG(debug, kDebug_GLContextType, 0, false)
442 GPU_CONFIG(nullgpu, kNull_GLContextType, 0, false) 442 GPU_CONFIG(nullgpu, kNull_GLContextType, 0, false)
443 #ifdef SK_ANGLE 443 #ifdef SK_ANGLE
444 GPU_CONFIG(angle, kANGLE_GLContextType, 0, false) 444 GPU_CONFIG(angle, kANGLE_GLContextType, 0, false)
445 #endif 445 #endif
446 #ifdef SK_COMMAND_BUFFER
447 GPU_CONFIG(commandbuffer, kCommandBuffer_GLContextType, 0, false)
448 #endif
446 #if SK_MESA 449 #if SK_MESA
447 GPU_CONFIG(mesa, kMESA_GLContextType, 0, false) 450 GPU_CONFIG(mesa, kMESA_GLContextType, 0, false)
448 #endif 451 #endif
449 } 452 }
450 #endif 453 #endif
451 454
452 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK 455 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
453 if (is_cpu_config_allowed("hwui")) { 456 if (is_cpu_config_allowed("hwui")) {
454 Config config = { "hwui", Benchmark::kHWUI_Backend, kRGBA_8888_SkColorTy pe, 457 Config config = { "hwui", Benchmark::kHWUI_Backend, kRGBA_8888_SkColorTy pe,
455 kPremul_SkAlphaType, 0, kBogusGLContextType, false }; 458 kPremul_SkAlphaType, 0, kBogusGLContextType, false };
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 1159
1157 return 0; 1160 return 0;
1158 } 1161 }
1159 1162
1160 #if !defined SK_BUILD_FOR_IOS 1163 #if !defined SK_BUILD_FOR_IOS
1161 int main(int argc, char** argv) { 1164 int main(int argc, char** argv) {
1162 SkCommandLineFlags::Parse(argc, argv); 1165 SkCommandLineFlags::Parse(argc, argv);
1163 return nanobench_main(); 1166 return nanobench_main();
1164 } 1167 }
1165 #endif 1168 #endif
OLDNEW
« no previous file with comments | « no previous file | dm/DM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698