skia2/gn/bench.gni
Mike Reed f8a6b5b4b0 Impl SkFilterOptions for raster-images
Maintains the old and new code-paths:
- if the shader was made with explicit filteroptions, use those
- if not, infer the filteroptions from the filterquality enum
  (and the legacy heuristics of sniffing/snapping the ctm)

In either case, the bulk of the onProgram() is shared, driving off
the (possibly computed locally) filteroptions.

bench looks sort like we expect:

    509.28  	filteroptions_sampling_0_mipmap_0	8888
    495.76  	filteroptions_sampling_0_mipmap_1	8888
    642.52  	filteroptions_sampling_0_mipmap_2	8888

    942.40  	filteroptions_sampling_1_mipmap_0	8888
    976.94  	filteroptions_sampling_1_mipmap_1	8888
   1686.34  	filteroptions_sampling_1_mipmap_2	8888

Bug: skia:10344
Change-Id: I77a79f79f640986fdd6b14f163c1a03462c55dc0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297561
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2020-07-10 13:08:33 +00:00

133 lines
4.1 KiB
Plaintext

# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Things are easiest for everyone if these source paths are absolute.
_bench = get_path_info("../bench", "abspath")
bench_sources = [
"$_bench/AAClipBench.cpp",
"$_bench/AlternatingColorPatternBench.cpp",
"$_bench/AndroidCodecBench.cpp",
"$_bench/BenchLogger.cpp",
"$_bench/Benchmark.cpp",
"$_bench/BezierBench.cpp",
"$_bench/BigPathBench.cpp",
"$_bench/BitmapBench.cpp",
"$_bench/BitmapRectBench.cpp",
"$_bench/BitmapRegionDecoderBench.cpp",
"$_bench/BlendmodeBench.cpp",
"$_bench/BlurBench.cpp",
"$_bench/BlurImageFilterBench.cpp",
"$_bench/BlurRectBench.cpp",
"$_bench/BlurRectsBench.cpp",
"$_bench/BulkRectBench.cpp",
"$_bench/CTConvertBench.cpp",
"$_bench/ChartBench.cpp",
"$_bench/ChecksumBench.cpp",
"$_bench/ChromeBench.cpp",
"$_bench/ClearBench.cpp",
"$_bench/ClipMaskBench.cpp",
"$_bench/ClipStrategyBench.cpp",
"$_bench/CmapBench.cpp",
"$_bench/CodecBench.cpp",
"$_bench/ColorFilterBench.cpp",
"$_bench/ColorPrivBench.cpp",
"$_bench/CompositingImagesBench.cpp",
"$_bench/ControlBench.cpp",
"$_bench/CoverageBench.cpp",
"$_bench/CreateBackendTextureBench.cpp",
"$_bench/CubicKLMBench.cpp",
"$_bench/CubicMapBench.cpp",
"$_bench/DDLRecorderBench.cpp",
"$_bench/DashBench.cpp",
"$_bench/DisplacementBench.cpp",
"$_bench/DrawBitmapAABench.cpp",
"$_bench/EncodeBench.cpp",
"$_bench/FSRectBench.cpp",
"$_bench/FilteringBench.cpp",
"$_bench/FontCacheBench.cpp",
"$_bench/GMBench.cpp",
"$_bench/GameBench.cpp",
"$_bench/GeometryBench.cpp",
"$_bench/GrMemoryPoolBench.cpp",
"$_bench/GrMipMapBench.cpp",
"$_bench/GrQuadBench.cpp",
"$_bench/GrResourceCacheBench.cpp",
"$_bench/GradientBench.cpp",
"$_bench/HairlinePathBench.cpp",
"$_bench/HardStopGradientBench_ScaleNumColors.cpp",
"$_bench/HardStopGradientBench_ScaleNumHardStops.cpp",
"$_bench/HardStopGradientBench_SpecialHardStops.cpp",
"$_bench/ImageBench.cpp",
"$_bench/ImageCacheBench.cpp",
"$_bench/ImageCacheBudgetBench.cpp",
"$_bench/ImageCycleBench.cpp",
"$_bench/ImageFilterCollapse.cpp",
"$_bench/ImageFilterDAGBench.cpp",
"$_bench/InterpBench.cpp",
"$_bench/JSONBench.cpp",
"$_bench/LightingBench.cpp",
"$_bench/LineBench.cpp",
"$_bench/MagnifierBench.cpp",
"$_bench/MathBench.cpp",
"$_bench/Matrix44Bench.cpp",
"$_bench/MatrixBench.cpp",
"$_bench/MatrixConvolutionBench.cpp",
"$_bench/MemsetBench.cpp",
"$_bench/MergeBench.cpp",
"$_bench/MipMapBench.cpp",
"$_bench/MorphologyBench.cpp",
"$_bench/MutexBench.cpp",
"$_bench/PDFBench.cpp",
"$_bench/PatchBench.cpp",
"$_bench/PathBench.cpp",
"$_bench/PathIterBench.cpp",
"$_bench/PathOpsBench.cpp",
"$_bench/PathTextBench.cpp",
"$_bench/PerlinNoiseBench.cpp",
"$_bench/PictureNestingBench.cpp",
"$_bench/PictureOverheadBench.cpp",
"$_bench/PicturePlaybackBench.cpp",
"$_bench/PolyUtilsBench.cpp",
"$_bench/PremulAndUnpremulAlphaOpsBench.cpp",
"$_bench/QuickRejectBench.cpp",
"$_bench/RTreeBench.cpp",
"$_bench/ReadPixBench.cpp",
"$_bench/RecordingBench.cpp",
"$_bench/RectBench.cpp",
"$_bench/RectanizerBench.cpp",
"$_bench/RefCntBench.cpp",
"$_bench/RegionBench.cpp",
"$_bench/RegionContainBench.cpp",
"$_bench/RepeatTileBench.cpp",
"$_bench/RotatedRectBench.cpp",
"$_bench/SKPAnimationBench.cpp",
"$_bench/SKPBench.cpp",
"$_bench/ScalarBench.cpp",
"$_bench/ShaderMaskFilterBench.cpp",
"$_bench/ShadowBench.cpp",
"$_bench/ShapesBench.cpp",
"$_bench/Sk4fBench.cpp",
"$_bench/SkGlyphCacheBench.cpp",
"$_bench/SkSLBench.cpp",
"$_bench/SkSLInterpreterBench.cpp",
"$_bench/SkVMBench.cpp",
"$_bench/SortBench.cpp",
"$_bench/StreamBench.cpp",
"$_bench/StrokeBench.cpp",
"$_bench/SwizzleBench.cpp",
"$_bench/TableBench.cpp",
"$_bench/TessellatePathBench.cpp",
"$_bench/TextBlobBench.cpp",
"$_bench/TileBench.cpp",
"$_bench/TileImageFilterBench.cpp",
"$_bench/TopoSortBench.cpp",
"$_bench/TypefaceBench.cpp",
"$_bench/VertBench.cpp",
"$_bench/VertexColorSpaceBench.cpp",
"$_bench/WritePixelsBench.cpp",
"$_bench/WriterBench.cpp",
]