2011-06-02 14:38:23 +00:00
|
|
|
# GYP file to build performance testbench.
|
|
|
|
#
|
2011-05-31 21:21:54 +00:00
|
|
|
{
|
|
|
|
'includes': [
|
2011-06-02 14:38:23 +00:00
|
|
|
'apptype_console.gypi',
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'bench',
|
|
|
|
'type': 'executable',
|
2011-10-31 14:33:35 +00:00
|
|
|
'include_dirs' : [
|
|
|
|
'../src/core',
|
2013-01-04 23:06:44 +00:00
|
|
|
'../src/effects',
|
2013-01-31 19:47:48 +00:00
|
|
|
'../src/utils',
|
2011-10-31 14:33:35 +00:00
|
|
|
],
|
2011-05-31 21:21:54 +00:00
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2012-06-22 18:24:56 +00:00
|
|
|
'bench_timer',
|
2013-07-24 17:24:23 +00:00
|
|
|
'flags.gyp:flags',
|
2013-12-03 18:16:48 +00:00
|
|
|
'jsoncpp.gyp:jsoncpp',
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
2013-12-02 13:50:38 +00:00
|
|
|
'sources': [
|
|
|
|
'../bench/AAClipBench.cpp',
|
|
|
|
'../bench/BicubicBench.cpp',
|
|
|
|
'../bench/BitmapBench.cpp',
|
|
|
|
'../bench/BitmapRectBench.cpp',
|
|
|
|
'../bench/BitmapScaleBench.cpp',
|
|
|
|
'../bench/BlurBench.cpp',
|
|
|
|
'../bench/BlurImageFilterBench.cpp',
|
|
|
|
'../bench/BlurRectBench.cpp',
|
|
|
|
'../bench/BlurRoundRectBench.cpp',
|
|
|
|
'../bench/ChartBench.cpp',
|
|
|
|
'../bench/ChecksumBench.cpp',
|
|
|
|
'../bench/ChromeBench.cpp',
|
|
|
|
'../bench/CmapBench.cpp',
|
|
|
|
'../bench/ColorFilterBench.cpp',
|
2013-12-02 22:32:47 +00:00
|
|
|
'../bench/ColorPrivBench.cpp',
|
2013-12-02 13:50:38 +00:00
|
|
|
'../bench/CoverageBench.cpp',
|
|
|
|
'../bench/DashBench.cpp',
|
|
|
|
'../bench/DecodeBench.cpp',
|
|
|
|
'../bench/DeferredCanvasBench.cpp',
|
|
|
|
'../bench/DeferredSurfaceCopyBench.cpp',
|
|
|
|
'../bench/DisplacementBench.cpp',
|
|
|
|
'../bench/FSRectBench.cpp',
|
|
|
|
'../bench/FontCacheBench.cpp',
|
|
|
|
'../bench/FontScalerBench.cpp',
|
|
|
|
'../bench/GameBench.cpp',
|
|
|
|
'../bench/GrMemoryPoolBench.cpp',
|
|
|
|
'../bench/GrResourceCacheBench.cpp',
|
|
|
|
'../bench/GradientBench.cpp',
|
|
|
|
'../bench/HairlinePathBench.cpp',
|
|
|
|
'../bench/ImageCacheBench.cpp',
|
|
|
|
'../bench/ImageDecodeBench.cpp',
|
|
|
|
'../bench/InterpBench.cpp',
|
|
|
|
'../bench/LightingBench.cpp',
|
|
|
|
'../bench/LineBench.cpp',
|
|
|
|
'../bench/MagnifierBench.cpp',
|
|
|
|
'../bench/MathBench.cpp',
|
|
|
|
'../bench/Matrix44Bench.cpp',
|
|
|
|
'../bench/MatrixBench.cpp',
|
|
|
|
'../bench/MatrixConvolutionBench.cpp',
|
|
|
|
'../bench/MemoryBench.cpp',
|
|
|
|
'../bench/MemsetBench.cpp',
|
|
|
|
'../bench/MergeBench.cpp',
|
|
|
|
'../bench/MorphologyBench.cpp',
|
|
|
|
'../bench/MutexBench.cpp',
|
|
|
|
'../bench/PathBench.cpp',
|
|
|
|
'../bench/PathIterBench.cpp',
|
|
|
|
'../bench/PathUtilsBench.cpp',
|
|
|
|
'../bench/PerlinNoiseBench.cpp',
|
|
|
|
'../bench/PicturePlaybackBench.cpp',
|
|
|
|
'../bench/PictureRecordBench.cpp',
|
|
|
|
'../bench/PremulAndUnpremulAlphaOpsBench.cpp',
|
Initial QuadTree implementation
In an effort to find a faster bounding box hierarchy than the R-Tree, a QuadTree has been implemented here.
For now, the QuadTree construction is generally faster than the R-Tree and the queries are a bit slower, so overall, SKP local tests showed QuadTree performance similar to the R-Tree performance.
Tests and bench are included in this cl.
At this point, I'd like to be able to commit this in order to more easily use the bots to test multiple configurations and a larger number of SKPs. The R-Tree BBH is still used by default so this change shouldn't affect chromium.
BUG=skia:
R=junov@chromium.org, junov@google.com, senorblanco@google.com, senorblanco@chromium.org, reed@google.com, sugoi@google.com, fmalita@google.com
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/131343011
git-svn-id: http://skia.googlecode.com/svn/trunk@13282 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-02-03 18:08:33 +00:00
|
|
|
'../bench/QuadTreeBench.cpp',
|
2013-12-02 13:50:38 +00:00
|
|
|
'../bench/RTreeBench.cpp',
|
|
|
|
'../bench/ReadPixBench.cpp',
|
|
|
|
'../bench/RectBench.cpp',
|
|
|
|
'../bench/RectoriBench.cpp',
|
|
|
|
'../bench/RefCntBench.cpp',
|
|
|
|
'../bench/RegionBench.cpp',
|
|
|
|
'../bench/RegionContainBench.cpp',
|
|
|
|
'../bench/RepeatTileBench.cpp',
|
|
|
|
'../bench/ScalarBench.cpp',
|
|
|
|
'../bench/ShaderMaskBench.cpp',
|
|
|
|
'../bench/SkipZeroesBench.cpp',
|
|
|
|
'../bench/SortBench.cpp',
|
2014-01-07 17:03:31 +00:00
|
|
|
'../bench/StackBench.cpp',
|
2013-12-02 13:50:38 +00:00
|
|
|
'../bench/StrokeBench.cpp',
|
|
|
|
'../bench/TableBench.cpp',
|
|
|
|
'../bench/TextBench.cpp',
|
|
|
|
'../bench/TileBench.cpp',
|
|
|
|
'../bench/VertBench.cpp',
|
|
|
|
'../bench/WritePixelsBench.cpp',
|
|
|
|
'../bench/WriterBench.cpp',
|
|
|
|
'../bench/XfermodeBench.cpp',
|
|
|
|
|
|
|
|
'../bench/SkBenchLogger.cpp',
|
|
|
|
'../bench/SkBenchLogger.h',
|
|
|
|
'../bench/SkBenchmark.cpp',
|
|
|
|
'../bench/SkBenchmark.h',
|
2014-02-03 14:48:17 +00:00
|
|
|
'../bench/SkGMBench.cpp',
|
|
|
|
'../bench/SkGMBench.h',
|
|
|
|
|
2013-12-02 13:50:38 +00:00
|
|
|
'../bench/benchmain.cpp',
|
|
|
|
],
|
2012-08-02 14:03:32 +00:00
|
|
|
'conditions': [
|
|
|
|
['skia_gpu == 1',
|
|
|
|
{
|
|
|
|
'include_dirs' : [
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
2014-01-27 19:52:51 +00:00
|
|
|
'dependencies': [
|
|
|
|
'gputest.gyp:skgputest',
|
|
|
|
],
|
2012-08-02 14:03:32 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2014-02-03 14:48:17 +00:00
|
|
|
'includes': [
|
|
|
|
'gmslides.gypi',
|
|
|
|
],
|
2011-05-31 21:21:54 +00:00
|
|
|
},
|
2012-06-22 18:24:56 +00:00
|
|
|
{
|
|
|
|
'target_name' : 'bench_timer',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
'../bench/BenchTimer.h',
|
|
|
|
'../bench/BenchTimer.cpp',
|
|
|
|
'../bench/BenchSysTimer_mach.h',
|
|
|
|
'../bench/BenchSysTimer_mach.cpp',
|
|
|
|
'../bench/BenchSysTimer_posix.h',
|
|
|
|
'../bench/BenchSysTimer_posix.cpp',
|
|
|
|
'../bench/BenchSysTimer_windows.h',
|
|
|
|
'../bench/BenchSysTimer_windows.cpp',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/core',
|
|
|
|
'../src/gpu',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2012-06-22 18:24:56 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2012-09-24 19:33:57 +00:00
|
|
|
[ 'skia_os not in ["mac", "ios"]', {
|
2012-06-22 18:24:56 +00:00
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_mach.h',
|
|
|
|
'../bench/BenchSysTimer_mach.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2013-06-11 15:52:19 +00:00
|
|
|
[ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
|
2012-06-22 18:24:56 +00:00
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_posix.h',
|
|
|
|
'../bench/BenchSysTimer_posix.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2013-06-11 15:52:19 +00:00
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
|
2012-06-22 18:24:56 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lrt',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
[ 'skia_os != "win"', {
|
|
|
|
'sources!': [
|
|
|
|
'../bench/BenchSysTimer_windows.h',
|
|
|
|
'../bench/BenchSysTimer_windows.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2012-08-02 14:03:32 +00:00
|
|
|
['skia_gpu == 1', {
|
|
|
|
'sources': [
|
|
|
|
'../bench/BenchGpuTimer_gl.h',
|
|
|
|
'../bench/BenchGpuTimer_gl.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2012-06-22 18:24:56 +00:00
|
|
|
],
|
|
|
|
}
|
2011-05-31 21:21:54 +00:00
|
|
|
],
|
|
|
|
}
|