Flutter Engine
The Flutter Engine
|
#include <Benchmark.h>
Public Types | |
enum class | Backend { kNonRendering , kRaster , kGanesh , kGraphite , kPDF , kHWUI } |
Public Member Functions | |
Benchmark () | |
const char * | getName () |
const char * | getUniqueName () |
SkISize | getSize () |
virtual bool | isSuitableFor (Backend backend) |
virtual void | modifyGrContextOptions (GrContextOptions *) |
virtual bool | shouldLoop () const |
void | delayedSetup () |
void | perCanvasPreDraw (SkCanvas *) |
void | perCanvasPostDraw (SkCanvas *) |
void | preDraw (SkCanvas *) |
void | postDraw (SkCanvas *) |
void | draw (int loops, SkCanvas *) |
virtual void | getGpuStats (SkCanvas *, skia_private::TArray< SkString > *keys, skia_private::TArray< double > *values) |
virtual bool | getDMSAAStats (GrRecordingContext *) |
int | getUnits () const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Protected Member Functions | |
void | setUnits (int units) |
virtual void | setupPaint (SkPaint *paint) |
virtual const char * | onGetName ()=0 |
virtual const char * | onGetUniqueName () |
virtual void | onDelayedSetup () |
virtual void | onPerCanvasPreDraw (SkCanvas *) |
virtual void | onPerCanvasPostDraw (SkCanvas *) |
virtual void | onPreDraw (SkCanvas *) |
virtual void | onPostDraw (SkCanvas *) |
virtual void | onDraw (int loops, SkCanvas *)=0 |
virtual SkISize | onGetSize () |
Definition at line 36 of file Benchmark.h.
|
strong |
Enumerator | |
---|---|
kNonRendering | |
kRaster | |
kGanesh | |
kGraphite | |
kPDF | |
kHWUI |
Definition at line 44 of file Benchmark.h.
Benchmark::Benchmark | ( | ) |
Definition at line 16 of file Benchmark.cpp.
void Benchmark::delayedSetup | ( | ) |
Definition at line 30 of file Benchmark.cpp.
Definition at line 50 of file Benchmark.cpp.
|
inlinevirtual |
|
inlinevirtual |
const char * Benchmark::getName | ( | ) |
Definition at line 18 of file Benchmark.cpp.
SkISize Benchmark::getSize | ( | ) |
Definition at line 26 of file Benchmark.cpp.
const char * Benchmark::getUniqueName | ( | ) |
Definition at line 22 of file Benchmark.cpp.
|
inline |
Definition at line 92 of file Benchmark.h.
|
inlinevirtual |
Reimplemented in PDFScalarBench, DecodeBench, skgpu::ganesh::PathTessellateBenchmark, TriangulatorBenchmark, AndroidCodecBench, BulkRectBench< kRectCount, kLayout, kImageMode, kDrawMode >, CanvasSaveRestoreBench, ComputeChecksumBench, CMAPBench, CodecBench, FilterColorBench, FourByteInterpBench< kFast, kScale >, ColorSpaceTransformBench, SkcmsTransformBench, CompositingImages, ControlBench, CubicMapBench, DDLRecorderBench, EncodeBench, FontPathBench, GeometryBench, ConvexityBench, GMBench, skgpu::graphite::BoundsManagerBench, skgpu::graphite::IntersectionTreeBench, GrMemoryPoolBench, GrMipMapBench, GrQuadBoundsBench, GrResourceCacheBenchAdd, GrResourceCacheBenchFind, Image2RasterBench, ImageCacheBudgetBench, ImageCacheBudgetDynamicBench, ImageCycle, InterpBench, JsonBench, MathBench, IsFiniteBench, FloorBench, CLZBench, CTZBench, NormalizeBench, FixedMathBench, Floor2IntBench, M4Bench, MapRectBench, MatrixBench, MemsetBench< T >, MipmapBench, MutexBench< Mutex >, SharedBench, PatchUtilsBench, RandomPathBench, ConservativelyContainsBench, ConicBench_Chop, ConicBench, TightBoundsBench, PathIterBench, PathOpsBench, PathOpsSimplifyBench, PathBuilderBench, PictureNestingRecording, PixmapOrientBench, GetAlphafBench, RectanizerBench, RefCntBench_Stack, RefCntBench_Heap, RefCntBench_New, WeakRefCntBench_Stack, WeakRefCntBench_Heap, WeakRefCntBench_New, RegionBench, RegionContainBench, RTreeBuildBench, RTreeQueryBench, Sk4fRoundtripBench< T >, Sk4fFloorBench, Sk4fGradientBench, SkGlyphCacheBasic, SkGlyphCacheStressTest, SKPBench, SkSLCompilerStartupBench, SkSLCompileBench, SkSLModuleLoaderBench, SortBench, StreamBench, StrokeBench, SwizzleBench, TopoSortBench, UtfToGlyph, VertexColorSpaceBench, WriterBench, PictureCentricBench, and DeserializePictureBench.
Definition at line 55 of file Benchmark.h.
|
inlinevirtual |
|
inlineprotectedvirtual |
Reimplemented in skgpu::graphite::BoundsManagerBench, skgpu::graphite::IntersectionTreeBench, AlternatingColorPatternBench, AndroidCodecBench, BigPathBench, XfermodeBench, BlurImageFilterBench, BulkRectBench< kRectCount, kLayout, kImageMode, kDrawMode >, CodecBench, FilteredRectBench, FourByteInterpBench< kFast, kScale >, ColorSpaceTransformBench, SkcmsTransformBench, DrawPathBench, DecodeBench, DisplacementBaseBench, DrawBitmapAABench, EncodeBench, FilteringBench, FontPathBench, FSRectBench, GameBench, GeoRectBench, GrQuadBoundsBench, GrResourceCacheBenchFind, TableCollapseBench, MatrixCollapseBench, ImageMakeWithFilterDAGBench, DecomposeMatrixBench, MergeBench, MipmapBench, PatchBench, PathCreateBench, PathCopyBench, PathTransformBench, PathEqualityBench, SkBench_AddPathTest, PathBuilderBench, PictureNestingPlayback, TiledPlaybackBench, PremulAndUnpremulAlphaOpsBench, PixmapOrientBench, GetAlphafBench, RectanizerBench, RectBench, LocalCoordsRectBench, RepeatTileBench, RTreeQueryBench, ShaderMFBench, ShadowBench, SortBench, skgpu::ganesh::PathTessellateBenchmark, SkTextBlobBench, ConstXTileBench, TopoSortBench, TriangulatorBenchmark, UtfToGlyph, and AtlasBench.
Definition at line 101 of file Benchmark.h.
Implemented in MemsetBench< T >, MemsetBench< T >, MemsetBench< T >, skgpu::graphite::BoundsManagerBench, skgpu::graphite::IntersectionTreeBench, skgpu::ganesh::PathTessellateBenchmark, TriangulatorBenchmark, AAClipBuilderBench, AAClipRegionBench, BlurRectBench, ComputeChecksumBench, FourByteInterpBench< kFast, kScale >, ControlBench, CubicMapBench, MakeDashBench, BitmapDecodeBench, SkottieDecodeBench, SkottiePictureDecodeBench, EncodeBench, GMBench, GrMemoryPoolBench, GrQuadBoundsBench, Image2RasterBench, ImageCacheBench, InterpBench, JsonBench, MathBench, IsFiniteBench, FloorBench, CLZBench, CTZBench, NormalizeBench, FixedMathBench, Floor2IntBench, M4Bench, MapRectBench, MatrixBench, MemsetBench< T >, MipmapBench, MSKPBench, MutexBench< Mutex >, SharedBench, PatchUtilsBench, PathCreateBench, PathCopyBench, PathTransformBench, PathEqualityBench, SkBench_AddPathTest, ConicBench_EvalPos, ConicBench_EvalTan, ConicBench_TinyError, ConicBench_ComputeError, ConicBench_asQuadTol, ConicBench_quadPow2, PathIterBench, PDFScalarBench, PictureNestingRecording, PixmapOrientBench, GetAlphafBench, RecordingBench, DeserializePictureBench, RefCntBench_Stack, RefCntBench_Heap, RefCntBench_New, WeakRefCntBench_Stack, WeakRefCntBench_Heap, WeakRefCntBench_New, RegionContainBench, Sk4fGradientBench, SkGlyphCacheBasic, SkGlyphCacheStressTest, SkSLCompilerStartupBench, SkSLModuleLoaderBench, SortBench, SwizzleBench, TopoSortBench, WriterBench, AAClipBench, NestedAAClipBench, AlternatingColorPatternBench, BezierBench, BigPathBench, XfermodeBench, BlurBench, BlurImageFilterBench, BlurRectsBench, BulkRectBench< kRectCount, kLayout, kImageMode, kDrawMode >, CanvasSaveRestoreBench, ChartBench, ScrollGmailBench, ClearBench, RasterTileBench, ClipStrategyBench, CMAPBench, FilteredRectBench, ColorSpaceTransformBench, SkcmsTransformBench, CompositingImages, DrawPathBench, DashBench, DashLineBench, DrawPointsDashingBench, GiantDashBench, DashGridBench, DisplacementZeroBench, DisplacementAlphaBench, DisplacementFullBench, DrawBitmapAABench, FilteringBench, FontCacheBench, FontCacheEfficiency, FontPathBench, FSRectBench, GameBench, GeoRectBench_intersect, GeoRectBench_intersect_rect, GeoRectBench_Intersects, GeoRectBench_sort, EvalQuadAt0, EvalQuadAt1, EvalQuadTangentAt0, EvalQuadTangentAt1, ChopQuadAt, ChopCubicAt, ConvexityBench, GradientBench, Gradient2Bench, GrMipMapBench, GrResourceCacheBenchAdd, GrResourceCacheBenchFind, HairlinePathBench, HardStopGradientBench_ScaleNumColors, HardStopGradientBench_ScaleNumHardStops, HardStopGradientBench_SpecialHardStops, ImageCacheBudgetBench, ImageCacheBudgetDynamicBench, ImageCycle, BaseImageFilterCollapseBench, ImageFilterDAGBench, ImageMakeWithFilterDAGBench, ImageFilterDisplacedBlur, ImageFilterXfermodeIn, LightingPointLitDiffuseBench, LightingDistantLitDiffuseBench, LightingSpotLitDiffuseBench, LightingPointLitSpecularBench, LightingDistantLitSpecularBench, LightingSpotLitSpecularBench, LineBench, MatrixConvolutionBench, MergeBench, MorphologyBench, PatchBench, PathBench, CirclesBench, ArbRoundRectBench, TightBoundsBench, CommonConvexBench, PathOpsBench, PathOpsSimplifyBench, PathBuilderBench, PerlinNoiseBench, PictureNestingPlayback, TiledPlaybackBench, PolyUtilsBench, PremulAndUnpremulAlphaOpsBench, ReadPixBench, RectanizerBench, RectBench, PointsBench, BlitMaskBench, RegionBench, RepeatTileBench, RotRectBench, RTreeBuildBench, RTreeQueryBench, ShaderMFBench, ShadowBench, Sk4fRoundtripBench< T >, Sk4fFloorBench, SKPBench, SkSLCompileBench, StreamBench, StrokeBench, TableBench, ConstXTileBench, TileImageFilterBench, UtfToGlyph, VertBench, AtlasBench, VertexColorSpaceBench, WritePixelsBench, DDLRecorderBench, AndroidCodecBench, and CodecBench.
|
protectedpure virtual |
Implemented in DecodeBench, skgpu::graphite::BoundsManagerBench, skgpu::graphite::IntersectionTreeBench, AAClipBench, NestedAAClipBench, AAClipBuilderBench, AAClipRegionBench, AlternatingColorPatternBench, AndroidCodecBench, BezierBench, BigPathBench, XfermodeBench, BlurBench, BlurImageFilterBench, BlurRectBench, BlurRectsBench, BulkRectBench< kRectCount, kLayout, kImageMode, kDrawMode >, CanvasSaveRestoreBench, ChartBench, ComputeChecksumBench, ScrollGmailBench, ClearBench, RasterTileBench, ClipStrategyBench, CMAPBench, CodecBench, FilteredRectBench, FourByteInterpBench< kFast, kScale >, ColorSpaceTransformBench, SkcmsTransformBench, CompositingImages, ControlBench, DrawPathBench, CubicMapBench, DashBench, MakeDashBench, DashLineBench, DrawPointsDashingBench, GiantDashBench, DashGridBench, DDLRecorderBench, DisplacementZeroBench, DisplacementAlphaBench, DisplacementFullBench, DrawBitmapAABench, EncodeBench, FilteringBench, FontCacheBench, FontCacheEfficiency, FontPathBench, FSRectBench, GameBench, GeometryBench, ConvexityBench, GMBench, GradientBench, Gradient2Bench, GrMemoryPoolBench, GrMipMapBench, GrQuadBoundsBench, GrResourceCacheBenchAdd, GrResourceCacheBenchFind, HairlinePathBench, HardStopGradientBench_ScaleNumColors, HardStopGradientBench_ScaleNumHardStops, HardStopGradientBench_SpecialHardStops, Image2RasterBench, ImageCacheBench, ImageCacheBudgetBench, ImageCacheBudgetDynamicBench, ImageCycle, TableCollapseBench, MatrixCollapseBench, ImageFilterDAGBench, ImageMakeWithFilterDAGBench, ImageFilterDisplacedBlur, ImageFilterXfermodeIn, InterpBench, JsonBench, LightingPointLitDiffuseBench, LightingDistantLitDiffuseBench, LightingSpotLitDiffuseBench, LightingPointLitSpecularBench, LightingDistantLitSpecularBench, LightingSpotLitSpecularBench, LineBench, MathBench, IsFiniteBench, FloorBench, CLZBench, CTZBench, NormalizeBench, FixedMathBench, Floor2IntBench, M4Bench, MapRectBench, MatrixBench, MatrixConvolutionBench, MemsetBench< T >, MergeBench, MipmapBench, MorphologyBench, MSKPBench, MutexBench< Mutex >, SharedBench, PatchBench, PatchUtilsBench, PathBench, PathCreateBench, PathCopyBench, PathTransformBench, PathEqualityBench, SkBench_AddPathTest, CirclesBench, ArbRoundRectBench, ConicBench_TinyError, ConicBench_ComputeError, ConicBench_asQuadTol, ConicBench_quadPow2, TightBoundsBench, CommonConvexBench, PathIterBench, PathOpsBench, PathOpsSimplifyBench, PathBuilderBench, PDFScalarBench, PerlinNoiseBench, PictureNesting, TiledPlaybackBench, PolyUtilsBench, PremulAndUnpremulAlphaOpsBench, ReadPixBench, PixmapOrientBench, GetAlphafBench, PictureCentricBench, DeserializePictureBench, RectanizerBench, RectBench, SrcModeRectBench, TransparentRectBench, LocalCoordsRectBench, OvalBench, RRectBench, PointsBench, BlitMaskBench, RefCntBench_Stack, RefCntBench_Heap, RefCntBench_New, WeakRefCntBench_Stack, WeakRefCntBench_Heap, WeakRefCntBench_New, RegionBench, RegionContainBench, RepeatTileBench, RotRectBench, RTreeBuildBench, RTreeQueryBench, ShaderMFBench, ShadowBench, Sk4fRoundtripBench< T >, Sk4fFloorBench, Sk4fGradientBench, SkGlyphCacheBasic, SkGlyphCacheStressTest, SKPBench, SkSLCompilerStartupBench, SkSLCompileBench, SkSLModuleLoaderBench, SortBench, StreamBench, StrokeBench, SwizzleBench, TableBench, skgpu::ganesh::PathTessellateBenchmark, ConstXTileBench, TileImageFilterBench, TopoSortBench, TriangulatorBenchmark, UtfToGlyph, VertBench, AtlasBench, VertexColorSpaceBench, WritePixelsBench, and WriterBench.
|
protectedvirtual |
Reimplemented in BigPathBench, BulkRectBench< kRectCount, kLayout, kImageMode, kDrawMode >, CanvasSaveRestoreBench, ScrollGmailBench, GMBench, GradientBench, HardStopGradientBench_ScaleNumColors, HardStopGradientBench_ScaleNumHardStops, HardStopGradientBench_SpecialHardStops, MSKPBench, TiledPlaybackBench, PictureCentricBench, DeserializePictureBench, and SKPBench.
Definition at line 59 of file Benchmark.cpp.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Reimplemented in CompositingImages, GMBench, skgpu::graphite::BoundsManagerBench, GrMipMapBench, Image2RasterBench, ImageCycle, JsonBench, SKPBench, BulkRectBench< kRectCount, kLayout, kImageMode, kDrawMode >, ImageCacheBudgetBench, and ImageCacheBudgetDynamicBench.
Definition at line 103 of file Benchmark.h.
|
inlineprotectedvirtual |
Reimplemented in GMBench, JsonBench, SKPBench, BulkRectBench< kRectCount, kLayout, kImageMode, kDrawMode >, CompositingImages, Image2RasterBench, ImageCacheBudgetBench, ImageCacheBudgetDynamicBench, ImageCycle, and SKPAnimationBench.
Definition at line 102 of file Benchmark.h.
|
inlineprotectedvirtual |
Reimplemented in ComputeChecksumBench, and MSKPBench.
Definition at line 105 of file Benchmark.h.
|
inlineprotectedvirtual |
Reimplemented in ComputeChecksumBench, ConvexityBench, MSKPBench, SkSLModuleLoaderBench, HardStopGradientBench_ScaleNumColors, HardStopGradientBench_ScaleNumHardStops, and HardStopGradientBench_SpecialHardStops.
Definition at line 104 of file Benchmark.h.
void Benchmark::perCanvasPostDraw | ( | SkCanvas * | canvas | ) |
Definition at line 46 of file Benchmark.cpp.
void Benchmark::perCanvasPreDraw | ( | SkCanvas * | canvas | ) |
Definition at line 34 of file Benchmark.cpp.
void Benchmark::postDraw | ( | SkCanvas * | canvas | ) |
Definition at line 42 of file Benchmark.cpp.
void Benchmark::preDraw | ( | SkCanvas * | canvas | ) |
Definition at line 38 of file Benchmark.cpp.
|
inlineprotected |
Definition at line 95 of file Benchmark.h.
|
protectedvirtual |
Reimplemented in RotatedRectBench, NonAACirclePathBench, RectBench, SrcModeRectBench, TransparentRectBench, and LocalCoordsRectBench.
Definition at line 55 of file Benchmark.cpp.
|
inlinevirtual |
Reimplemented in SKPBench, and SkSLModuleLoaderBench.
Definition at line 63 of file Benchmark.h.