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

Side by Side Diff: bench/benchmain.cpp

Issue 117053002: remove SK_SCALAR_IS_[FLOAT,FIXED] and assume floats (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 "BenchTimer.h" 8 #include "BenchTimer.h"
9 #include "ResultsWriter.h" 9 #include "ResultsWriter.h"
10 #include "SkBenchLogger.h" 10 #include "SkBenchLogger.h"
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 writer.option("mode", FLAGS_mode[0]); 400 writer.option("mode", FLAGS_mode[0]);
401 writer.option("alpha", SkStringPrintf("0x%02X", alpha).c_str()); 401 writer.option("alpha", SkStringPrintf("0x%02X", alpha).c_str());
402 writer.option("antialias", SkStringPrintf("%d", FLAGS_forceAA).c_str()); 402 writer.option("antialias", SkStringPrintf("%d", FLAGS_forceAA).c_str());
403 writer.option("filter", SkStringPrintf("%d", FLAGS_forceFilter).c_str()); 403 writer.option("filter", SkStringPrintf("%d", FLAGS_forceFilter).c_str());
404 writer.option("dither", SkTriState::Name[dither]); 404 writer.option("dither", SkTriState::Name[dither]);
405 405
406 writer.option("rotate", SkStringPrintf("%d", FLAGS_rotate).c_str()); 406 writer.option("rotate", SkStringPrintf("%d", FLAGS_rotate).c_str());
407 writer.option("scale", SkStringPrintf("%d", FLAGS_scale).c_str()); 407 writer.option("scale", SkStringPrintf("%d", FLAGS_scale).c_str());
408 writer.option("clip", SkStringPrintf("%d", FLAGS_clip).c_str()); 408 writer.option("clip", SkStringPrintf("%d", FLAGS_clip).c_str());
409 409
410 #if defined(SK_SCALAR_IS_FIXED)
411 writer.option("scalar", "fixed");
412 #else
413 writer.option("scalar", "float");
414 #endif
415
416 #if defined(SK_BUILD_FOR_WIN32) 410 #if defined(SK_BUILD_FOR_WIN32)
417 writer.option("system", "WIN32"); 411 writer.option("system", "WIN32");
418 #elif defined(SK_BUILD_FOR_MAC) 412 #elif defined(SK_BUILD_FOR_MAC)
419 writer.option("system", "MAC"); 413 writer.option("system", "MAC");
420 #elif defined(SK_BUILD_FOR_ANDROID) 414 #elif defined(SK_BUILD_FOR_ANDROID)
421 writer.option("system", "ANDROID"); 415 writer.option("system", "ANDROID");
422 #elif defined(SK_BUILD_FOR_UNIX) 416 #elif defined(SK_BUILD_FOR_UNIX)
423 writer.option("system", "UNIX"); 417 writer.option("system", "UNIX");
424 #else 418 #else
425 writer.option("system", "other"); 419 writer.option("system", "other");
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 gContextFactory.destroyContexts(); 687 gContextFactory.destroyContexts();
694 #endif 688 #endif
695 return 0; 689 return 0;
696 } 690 }
697 691
698 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 692 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
699 int main(int argc, char * const argv[]) { 693 int main(int argc, char * const argv[]) {
700 return tool_main(argc, (char**) argv); 694 return tool_main(argc, (char**) argv);
701 } 695 }
702 #endif 696 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698