Flutter Engine
The Flutter Engine
Classes | Functions
DecodeBench.cpp File Reference
#include "bench/Benchmark.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkPicture.h"
#include "include/core/SkPictureRecorder.h"
#include "modules/skottie/include/Skottie.h"
#include "tools/DecodeUtils.h"
#include "tools/Resources.h"
#include "tools/fonts/FontToolUtils.h"

Go to the source code of this file.

Classes

class  DecodeBench
 
class  BitmapDecodeBench
 
class  SkottieDecodeBench
 
class  SkottiePictureDecodeBench
 

Functions

 DEF_BENCH (return new SkottieDecodeBench("skottie_large", "skottie/skottie-text-scale-to-fit-minmax.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_medium", "skottie/skottie-sphere-effect.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_small", "skottie/skottie_sample_multiframe.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_connecting.json", "skottie/skottie-phonehub-connecting.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_generic_error.json", "skottie/skottie-phonehub-generic-error.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_onboard.json", "skottie/skottie-phonehub-onboard.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_connecting.json", "skottie/skottie-phonehub-svgo-connecting.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_generic_error.json", "skottie/skottie-phonehub-svgo-generic-error.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_onboard.json", "skottie/skottie-phonehub-svgo-onboard.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_masks_connecting.json", "skottie/skottie-phonehub-svgo-no-masks-connecting.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_masks_onboard.json", "skottie/skottie-phonehub-svgo-no-masks-onboard.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_frills_connecting.json", "skottie/skottie-phonehub-svgo-no-frills-connecting.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_frills_generic_error.json", "skottie/skottie-phonehub-svgo-no-frills-generic-error.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_frills_onboard.json", "skottie/skottie-phonehub-svgo-no-frills-onboard.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_connecting_min.json", "skottie/skottie-phonehub-connecting_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_generic_error_min.json", "skottie/skottie-phonehub-generic-error_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_onboard_min.json", "skottie/skottie-phonehub-onboard_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_connecting_min.json", "skottie/skottie-phonehub-svgo-connecting_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_generic_error_min.json", "skottie/skottie-phonehub-svgo-generic-error_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_onboard_min.json", "skottie/skottie-phonehub-svgo-onboard_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_masks_connecting_min.json", "skottie/skottie-phonehub-svgo-no-masks-connecting_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_masks_onboard_min.json", "skottie/skottie-phonehub-svgo-no-masks-onboard_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_frills_connecting_min.json", "skottie/skottie-phonehub-svgo-no-frills-connecting_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_frills_generic_error_min.json", "skottie/skottie-phonehub-svgo-no-frills-generic-error_min.json"))
 
 DEF_BENCH (return new SkottieDecodeBench("skottie_phonehub_svgo_no_frills_onboard_min.json", "skottie/skottie-phonehub-svgo-no-frills-onboard_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_large", "skottie/skottie-text-scale-to-fit-minmax.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_medium", "skottie/skottie-sphere-effect.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_small", "skottie/skottie_sample_multiframe.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_connecting.json", "skottie/skottie-phonehub-connecting.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_generic_error.json", "skottie/skottie-phonehub-generic-error.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_onboard.json", "skottie/skottie-phonehub-onboard.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_connecting.json", "skottie/skottie-phonehub-svgo-connecting.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_generic_error.json", "skottie/skottie-phonehub-svgo-generic-error.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_onboard.json", "skottie/skottie-phonehub-svgo-onboard.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_masks_connecting.json", "skottie/skottie-phonehub-svgo-no-masks-connecting.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_masks_onboard.json", "skottie/skottie-phonehub-svgo-no-masks-onboard.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_frills_connecting.json", "skottie/skottie-phonehub-svgo-no-frills-connecting.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_frills_generic_error.json", "skottie/skottie-phonehub-svgo-no-frills-generic-error.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_frills_onboard.json", "skottie/skottie-phonehub-svgo-no-frills-onboard.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_connecting_min.json", "skottie/skottie-phonehub-connecting_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_generic_error_min.json", "skottie/skottie-phonehub-generic-error_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_onboard_min.json", "skottie/skottie-phonehub-onboard_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_connecting_min.json", "skottie/skottie-phonehub-svgo-connecting_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_generic_error_min.json", "skottie/skottie-phonehub-svgo-generic-error_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_onboard_min.json", "skottie/skottie-phonehub-svgo-onboard_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_masks_connecting_min.json", "skottie/skottie-phonehub-svgo-no-masks-connecting_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_masks_onboard_min.json", "skottie/skottie-phonehub-svgo-no-masks-onboard_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_frills_connecting_min.json", "skottie/skottie-phonehub-svgo-no-frills-connecting_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_frills_generic_error_min.json", "skottie/skottie-phonehub-svgo-no-frills-generic-error_min.json"))
 
 DEF_BENCH (return new SkottiePictureDecodeBench("skottiepic_phonehub_svgo_no_frills_onboard_min.json", "skottie/skottie-phonehub-svgo-no-frills-onboard_min.json"))
 
 DEF_BENCH (return new BitmapDecodeBench("png_large", "images/mandrill_1600.png"))
 
 DEF_BENCH (return new BitmapDecodeBench("png_medium", "images/mandrill_512.png"))
 
 DEF_BENCH (return new BitmapDecodeBench("png_small", "images/mandrill_32.png"))
 
 DEF_BENCH (return new BitmapDecodeBench("png_phonehub_connecting", "images/Connecting.png"))
 
 DEF_BENCH (return new BitmapDecodeBench("png_phonehub_generic_error", "images/Generic_Error.png"))
 
 DEF_BENCH (return new BitmapDecodeBench("png_phonehub_onboard", "images/Onboard.png"))
 

Function Documentation

◆ DEF_BENCH() [1/56]

DEF_BENCH ( return new   BitmapDecodeBench"png_large", "images/mandrill_1600.png")

◆ DEF_BENCH() [2/56]

DEF_BENCH ( return new   BitmapDecodeBench"png_medium", "images/mandrill_512.png")

◆ DEF_BENCH() [3/56]

DEF_BENCH ( return new   BitmapDecodeBench"png_phonehub_connecting", "images/Connecting.png")

◆ DEF_BENCH() [4/56]

DEF_BENCH ( return new   BitmapDecodeBench"png_phonehub_generic_error", "images/Generic_Error.png")

◆ DEF_BENCH() [5/56]

DEF_BENCH ( return new   BitmapDecodeBench"png_phonehub_onboard", "images/Onboard.png")

◆ DEF_BENCH() [6/56]

DEF_BENCH ( return new   BitmapDecodeBench"png_small", "images/mandrill_32.png")

◆ DEF_BENCH() [7/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_large", "skottie/skottie-text-scale-to-fit-minmax.json")

◆ DEF_BENCH() [8/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_medium", "skottie/skottie-sphere-effect.json")

◆ DEF_BENCH() [9/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_connecting.json", "skottie/skottie-phonehub-connecting.json")

◆ DEF_BENCH() [10/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_connecting_min.json", "skottie/skottie-phonehub-connecting_min.json")

◆ DEF_BENCH() [11/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_generic_error.json", "skottie/skottie-phonehub-generic-error.json")

◆ DEF_BENCH() [12/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_generic_error_min.json", "skottie/skottie-phonehub-generic-error_min.json")

◆ DEF_BENCH() [13/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_onboard.json", "skottie/skottie-phonehub-onboard.json")

◆ DEF_BENCH() [14/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_onboard_min.json", "skottie/skottie-phonehub-onboard_min.json")

◆ DEF_BENCH() [15/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_connecting.json", "skottie/skottie-phonehub-svgo-connecting.json")

◆ DEF_BENCH() [16/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_connecting_min.json", "skottie/skottie-phonehub-svgo-connecting_min.json")

◆ DEF_BENCH() [17/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_generic_error.json", "skottie/skottie-phonehub-svgo-generic-error.json")

◆ DEF_BENCH() [18/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_generic_error_min.json", "skottie/skottie-phonehub-svgo-generic-error_min.json")

◆ DEF_BENCH() [19/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_frills_connecting.json", "skottie/skottie-phonehub-svgo-no-frills-connecting.json")

◆ DEF_BENCH() [20/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_frills_connecting_min.json", "skottie/skottie-phonehub-svgo-no-frills-connecting_min.json")

◆ DEF_BENCH() [21/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_frills_generic_error.json", "skottie/skottie-phonehub-svgo-no-frills-generic-error.json")

◆ DEF_BENCH() [22/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_frills_generic_error_min.json", "skottie/skottie-phonehub-svgo-no-frills-generic-error_min.json")

◆ DEF_BENCH() [23/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_frills_onboard.json", "skottie/skottie-phonehub-svgo-no-frills-onboard.json")

◆ DEF_BENCH() [24/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_frills_onboard_min.json", "skottie/skottie-phonehub-svgo-no-frills-onboard_min.json")

◆ DEF_BENCH() [25/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_masks_connecting.json", "skottie/skottie-phonehub-svgo-no-masks-connecting.json")

◆ DEF_BENCH() [26/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_masks_connecting_min.json", "skottie/skottie-phonehub-svgo-no-masks-connecting_min.json")

◆ DEF_BENCH() [27/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_masks_onboard.json", "skottie/skottie-phonehub-svgo-no-masks-onboard.json")

◆ DEF_BENCH() [28/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_no_masks_onboard_min.json", "skottie/skottie-phonehub-svgo-no-masks-onboard_min.json")

◆ DEF_BENCH() [29/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_onboard.json", "skottie/skottie-phonehub-svgo-onboard.json")

◆ DEF_BENCH() [30/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_phonehub_svgo_onboard_min.json", "skottie/skottie-phonehub-svgo-onboard_min.json")

◆ DEF_BENCH() [31/56]

DEF_BENCH ( return new   SkottieDecodeBench"skottie_small", "skottie/skottie_sample_multiframe.json")

◆ DEF_BENCH() [32/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_large", "skottie/skottie-text-scale-to-fit-minmax.json")

◆ DEF_BENCH() [33/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_medium", "skottie/skottie-sphere-effect.json")

◆ DEF_BENCH() [34/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_connecting.json", "skottie/skottie-phonehub-connecting.json")

◆ DEF_BENCH() [35/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_connecting_min.json", "skottie/skottie-phonehub-connecting_min.json")

◆ DEF_BENCH() [36/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_generic_error.json", "skottie/skottie-phonehub-generic-error.json")

◆ DEF_BENCH() [37/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_generic_error_min.json", "skottie/skottie-phonehub-generic-error_min.json")

◆ DEF_BENCH() [38/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_onboard.json", "skottie/skottie-phonehub-onboard.json")

◆ DEF_BENCH() [39/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_onboard_min.json", "skottie/skottie-phonehub-onboard_min.json")

◆ DEF_BENCH() [40/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_connecting.json", "skottie/skottie-phonehub-svgo-connecting.json")

◆ DEF_BENCH() [41/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_connecting_min.json", "skottie/skottie-phonehub-svgo-connecting_min.json")

◆ DEF_BENCH() [42/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_generic_error.json", "skottie/skottie-phonehub-svgo-generic-error.json")

◆ DEF_BENCH() [43/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_generic_error_min.json", "skottie/skottie-phonehub-svgo-generic-error_min.json")

◆ DEF_BENCH() [44/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_frills_connecting.json", "skottie/skottie-phonehub-svgo-no-frills-connecting.json")

◆ DEF_BENCH() [45/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_frills_connecting_min.json", "skottie/skottie-phonehub-svgo-no-frills-connecting_min.json")

◆ DEF_BENCH() [46/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_frills_generic_error.json", "skottie/skottie-phonehub-svgo-no-frills-generic-error.json")

◆ DEF_BENCH() [47/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_frills_generic_error_min.json", "skottie/skottie-phonehub-svgo-no-frills-generic-error_min.json")

◆ DEF_BENCH() [48/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_frills_onboard.json", "skottie/skottie-phonehub-svgo-no-frills-onboard.json")

◆ DEF_BENCH() [49/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_frills_onboard_min.json", "skottie/skottie-phonehub-svgo-no-frills-onboard_min.json")

◆ DEF_BENCH() [50/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_masks_connecting.json", "skottie/skottie-phonehub-svgo-no-masks-connecting.json")

◆ DEF_BENCH() [51/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_masks_connecting_min.json", "skottie/skottie-phonehub-svgo-no-masks-connecting_min.json")

◆ DEF_BENCH() [52/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_masks_onboard.json", "skottie/skottie-phonehub-svgo-no-masks-onboard.json")

◆ DEF_BENCH() [53/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_no_masks_onboard_min.json", "skottie/skottie-phonehub-svgo-no-masks-onboard_min.json")

◆ DEF_BENCH() [54/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_onboard.json", "skottie/skottie-phonehub-svgo-onboard.json")

◆ DEF_BENCH() [55/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_phonehub_svgo_onboard_min.json", "skottie/skottie-phonehub-svgo-onboard_min.json")

◆ DEF_BENCH() [56/56]

DEF_BENCH ( return new   SkottiePictureDecodeBench"skottiepic_small", "skottie/skottie_sample_multiframe.json")