moz-skia/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
AAClipBench.cpp
BenchGpuTimer_gl.cpp
BenchGpuTimer_gl.h
BenchSysTimer_c.cpp
BenchSysTimer_c.h
BenchSysTimer_mach.cpp
BenchSysTimer_mach.h
BenchSysTimer_posix.cpp
BenchSysTimer_posix.h
BenchSysTimer_windows.cpp
BenchSysTimer_windows.h
BenchTimer.cpp
BenchTimer.h
BicubicBench.cpp
BitmapBench.cpp
BitmapRectBench.cpp
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
ChecksumBench.cpp
ChromeBench.cpp
CmapBench.cpp
ColorFilterBench.cpp Factory methods for heap-allocated SkColorFilter objects. 2014-02-21 18:46:30 +00:00
ColorPrivBench.cpp
CoverageBench.cpp
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
FSRectBench.cpp
FontCacheBench.cpp
FontScalerBench.cpp Clean up global gSkSuppressFontCachePurgeSpew. 2014-05-12 15:48:38 +00:00
GameBench.cpp GameBench: curCell doesn't need to be extra state. 2014-05-07 17:12:55 +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
GradientBench.cpp Remove unused (by clients) SkUnitMapper 2014-05-22 12:27:41 +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
ImageDecodeBench.cpp
ImageFilterDAGBench.cpp Add a new bench that tests a simple image filter DAG. 2014-04-10 16:16:13 +00:00
InterpBench.cpp
LightingBench.cpp
LineBench.cpp
MagnifierBench.cpp Factory methods for heap-allocated SkImageFilter objects. 2014-03-10 10:51:58 +00:00
MathBench.cpp
Matrix44Bench.cpp
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
MemsetBench.cpp
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
PathBench.cpp
PathIterBench.cpp
PathUtilsBench.cpp
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
RTreeBench.cpp Rename benchmark classes, hopefully less confusing to valgrid? 2014-04-23 21:03:45 +00:00
ReadPixBench.cpp
RectBench.cpp
RectanizerBench.cpp Add bench for rectanizers 2014-06-05 07:18:03 -07:00
RectoriBench.cpp move common blur types into central header 2014-04-28 16:25:35 +00:00
RefCntBench.cpp
RegionBench.cpp
RegionContainBench.cpp
RepeatTileBench.cpp
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
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
SkBenchLogger.h
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
SortBench.cpp
StackBench.cpp Revert of https://codereview.chromium.org/127223004/ 2014-01-08 21:31:11 +00:00
StrokeBench.cpp
TableBench.cpp
TextBench.cpp
TileBench.cpp
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
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
bench_compare.py
bench_util.py gen_bench_expectations to generate bench expectations files. 2014-03-17 21:16:29 +00:00
benchmain.cpp Generate bench/Android.mk from gyp. 2014-05-16 13:15:41 +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
gUniqueGlyphIDs.h
gen_bench_expectations.py Adds angle to bench expectation configs. 2014-05-23 13:05:33 +00:00
tile_analyze.py