skia2/bench
mtklein 91359bed48 Revert of Clean up Test's resourcePath code. (https://codereview.chromium.org/319473003/)
Reason for revert:
Some benchmarks are written in a way that makes this change unsafe (e.g. const char* resPath = GetResourcePath().c_str(); in SkipZeroesBench) and Valgrind and ASAN caught that.  We can try again after a more careful cleanup of GetResourcePath().

Original issue's description:
> Clean up resourcePath code.
>
> 1) Make the implementation of SetResourcePath/GetResourcePath of GM and SkBenchmark match with the one in Test.
> 2) Make gResourcePath a static pointer to const char and move it inside the classes.
>
> BUG=None
> TEST=make tests && out/Debug/tests
>      make gm && out/Debug/gm
>      make bench && out/Debug/bench
> R=mtklein@google.com
>
> Committed: https://skia.googlesource.com/skia/+/52e4f413ffe2d281f9e90ff2147db08083ffcba7

R=tfarina@chromium.org
TBR=tfarina@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=None

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/320733002
2014-06-08 07:02:47 -07:00
..
BenchTool/BenchTool.xcodeproj move main.cpp outside of the xcode project 2009-01-07 11:49:19 +00:00
AAClipBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
bench_compare.py Make bench_compare executable. 2013-11-12 15:25:31 +00:00
bench_util.py gen_bench_expectations to generate bench expectations files. 2014-03-17 21:16:29 +00:00
BenchGpuTimer_gl.cpp Split GrGLContextInfo into GrGLContext & GrGLContextInfo 2013-02-28 20:16:25 +00:00
BenchGpuTimer_gl.h Split GrGLContextInfo into GrGLContext & GrGLContextInfo 2013-02-28 20:16:25 +00:00
benchmain.cpp Generate bench/Android.mk from gyp. 2014-05-16 13:15:41 +00:00
BenchSysTimer_c.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_c.h Convert #warning to comment to get iOS compiling 2013-03-28 13:43:16 +00:00
BenchSysTimer_mach.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
BenchSysTimer_mach.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_posix.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_posix.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
BenchSysTimer_windows.cpp Use lowercase windows.h in includes to fix Windows cross compilation using mingw. 2013-12-03 15:23:37 +00:00
BenchSysTimer_windows.h Use lowercase windows.h in includes to fix Windows cross compilation using mingw. 2013-12-03 15:23:37 +00:00
BenchTimer.cpp extend SkBenchmark to allow a bench to return a durationScale, which allows it to perform fewer actual interations, but report a scale factor to account for that. Thus a very slow bench can be compared head-to-head with a faster one, w/o actually forcing the tool to run for the full duration of the slower test. 2013-05-29 15:39:54 +00:00
BenchTimer.h extend SkBenchmark to allow a bench to return a durationScale, which allows it to perform fewer actual interations, but report a scale factor to account for that. Thus a very slow bench can be compared head-to-head with a faster one, w/o actually forcing the tool to run for the full duration of the slower test. 2013-05-29 15:39:54 +00:00
BicubicBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
BitmapBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
BitmapRectBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
BitmapScaleBench.cpp Adding this call simulates seeing a *different* bitmap every time we scale, which changes the code path (places much heavier load on constructing a new filter). This better emulates the kind of environment most embedders see us in, where they try to cache a scaled bitmap rather than frequently rescaling it. 2014-03-06 17:16:37 +00:00
BlurBench.cpp move common blur types into central header 2014-04-28 16:25:35 +00:00
BlurImageFilterBench.cpp Factory methods for heap-allocated SkImageFilter objects. 2014-03-10 10:51:58 +00:00
BlurRectBench.cpp move common blur types into central header 2014-04-28 16:25:35 +00:00
BlurRoundRectBench.cpp move common blur types into central header 2014-04-28 16:25:35 +00:00
ChartBench.cpp Remove global SkRandoms from ChartBench. 2014-05-08 15:12:43 +00:00
check_bench_regressions.py Adds dashboard link for one-line plot on each alert item. 2014-05-13 17:38:17 +00:00
ChecksumBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
ChromeBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
CmapBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
ColorFilterBench.cpp Factory methods for heap-allocated SkColorFilter objects. 2014-02-21 18:46:30 +00:00
ColorPrivBench.cpp Make sure four_byte_interp benches the entire FourByteInterp call. 2013-12-05 16:43:08 +00:00
CoverageBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
DashBench.cpp Add bench to measure drawing a dashed grid 2014-06-04 08:15:31 -07:00
DecodeBench.cpp Upstream fix for DecodeBench. 2014-02-20 15:41:17 +00:00
DeferredCanvasBench.cpp Reduce internal explicit SaveFlags usage. 2014-04-18 14:19:31 +00:00
DeferredSurfaceCopyBench.cpp Generate bench/Android.mk from gyp. 2014-05-16 13:15:41 +00:00
DisplacementBench.cpp Factory methods for heap-allocated SkImageFilter objects. 2014-03-10 10:51:58 +00:00
ETCBitmapBench.cpp Two new benches for ETC1 bitmaps. 2014-06-05 07:03:39 -07:00
FontCacheBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
FontScalerBench.cpp Clean up global gSkSuppressFontCachePurgeSpew. 2014-05-12 15:48:38 +00:00
FSRectBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
GameBench.cpp GameBench: curCell doesn't need to be extra state. 2014-05-07 17:12:55 +00:00
gen_bench_expectations.py Adds angle to bench expectation configs. 2014-05-23 13:05:33 +00:00
GradientBench.cpp Remove unused (by clients) SkUnitMapper 2014-05-22 12:27:41 +00:00
GrMemoryPoolBench.cpp DM: also run benches once. 2014-02-26 23:01:57 +00:00
GrOrderedSetBench.cpp Add GrSet class built on top of RedBlackTree 2014-02-27 20:23:22 +00:00
GrResourceCacheBench.cpp Factor GrTexture into public GrTexture and private GrTextureImpl. 2014-05-09 20:46:48 +00:00
gUniqueGlyphIDs.h switch array to uint16_t to fix overflows 2013-06-11 19:53:19 +00:00
HairlinePathBench.cpp Fix bench to compile when SK_SUPPORTS_GPU is not provided as a compiler option 2014-02-19 19:30:42 +00:00
ImageCacheBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
ImageDecodeBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
ImageFilterDAGBench.cpp Add a new bench that tests a simple image filter DAG. 2014-04-10 16:16:13 +00:00
InterpBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
LightingBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
LineBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
MagnifierBench.cpp Factory methods for heap-allocated SkImageFilter objects. 2014-03-10 10:51:58 +00:00
MathBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
Matrix44Bench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
MatrixBench.cpp Clean up another silly race in benches when run concurrently. 2014-06-02 18:22:12 -07:00
MatrixConvolutionBench.cpp Clean up SkImageFilter. 2014-03-12 16:36:08 +00:00
MemcpyBench.cpp Add sk_memcpy32 to Memcpy bench. 2014-05-28 22:47:26 +00:00
MemoryBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
MemsetBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
MergeBench.cpp Factory methods for heap-allocated SkImageFilter objects. 2014-03-10 10:51:58 +00:00
MorphologyBench.cpp Factory methods for heap-allocated SkImageFilter objects. 2014-03-10 10:51:58 +00:00
MutexBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
PathBench.cpp Cap memory usage in path_create bench. 2014-01-06 20:19:14 +00:00
PathIterBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
PathUtilsBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
PerlinNoiseBench.cpp SkPerlinNoiseShader::CreateTubulenceNoise() is misspelled 2014-04-01 16:09:37 +00:00
PicturePlaybackBench.cpp Staging for cleanup of SkPicture-related headers 2014-04-18 18:04:41 +00:00
PictureRecordBench.cpp Staging for cleanup of SkPicture-related headers 2014-04-18 18:04:41 +00:00
PremulAndUnpremulAlphaOpsBench.cpp Sanitizing source files in Housekeeper-Nightly 2014-03-18 03:02:11 +00:00
QuadTreeBench.cpp Rename benchmark classes, hopefully less confusing to valgrid? 2014-04-23 21:03:45 +00:00
ReadPixBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
RectanizerBench.cpp Add bench for rectanizers 2014-06-05 07:18:03 -07:00
RectBench.cpp Move non-trivial work in RectBench() to onPreDraw. 2013-12-05 12:07:44 +00:00
RectoriBench.cpp move common blur types into central header 2014-04-28 16:25:35 +00:00
RefCntBench.cpp Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
RegionBench.cpp Sanitizing source files in Housekeeper-Nightly 2014-01-02 07:01:35 +00:00
RegionContainBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
RepeatTileBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
ResultsWriter.cpp Reland https://codereview.chromium.org/286903025 2014-05-29 17:10:24 +00:00
ResultsWriter.h Reland https://codereview.chromium.org/286903025 2014-05-29 17:10:24 +00:00
RTreeBench.cpp Rename benchmark classes, hopefully less confusing to valgrid? 2014-04-23 21:03:45 +00:00
ScalarBench.cpp TSAN caught us racing in ScalarBench.cpp 2014-06-02 12:41:07 -07:00
ShaderMaskBench.cpp Remove support for inheriting the paint color from SkColorShader 2014-04-24 16:54:46 +00:00
SkBenchLogger.cpp Report data from bench_pictures in the same fashion as bench. 2012-09-07 15:21:18 +00:00
SkBenchLogger.h Clean up SkTypes.h. 2013-10-11 18:50:45 +00:00
SkBenchmark.cpp Revert of Clean up Test's resourcePath code. (https://codereview.chromium.org/319473003/) 2014-06-08 07:02:47 -07:00
SkBenchmark.h Revert of Clean up Test's resourcePath code. (https://codereview.chromium.org/319473003/) 2014-06-08 07:02:47 -07:00
SkGMBench.cpp DM: also run benches once. 2014-02-26 23:01:57 +00:00
SkGMBench.h Allow GMs to be used as benchmarks. Make convex_poly_clip opt in. 2014-02-03 14:48:17 +00:00
SkipZeroesBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
SortBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
StackBench.cpp Revert of https://codereview.chromium.org/127223004/ 2014-01-08 21:31:11 +00:00
StrokeBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
TableBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
TextBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
tile_analyze.py Script to plot tile vs. viewport comparison for given platform and revision. 2013-02-13 23:22:29 +00:00
TileBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
TimerData.cpp Sanitizing source files in Housekeeper-Nightly 2014-05-30 03:06:10 +00:00
TimerData.h Sanitizing source files in Housekeeper-Nightly 2014-05-30 03:06:10 +00:00
VertBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00
WritePixelsBench.cpp Sanitizing source files in Housekeeper-Nightly 2014-03-08 03:02:06 +00:00
WriterBench.cpp Convert SkWriter32 to use an SkTDArray for its internal storage. 2014-01-14 20:51:26 +00:00
XfermodeBench.cpp Simplify benchmark internal API. 2013-12-03 18:17:16 +00:00