Flutter Engine
The Flutter Engine
|
#include "dm/DMJsonWriter.h"
#include "dm/DMSrcSink.h"
#include "include/codec/SkCodec.h"
#include "include/codec/SkEncodedImageFormat.h"
#include "include/core/SkBBHFactory.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkData.h"
#include "include/core/SkDocument.h"
#include "include/core/SkGraphics.h"
#include "src/base/SkHalf.h"
#include "src/base/SkLeanWindows.h"
#include "src/base/SkNoDestructor.h"
#include "src/base/SkSpinlock.h"
#include "src/base/SkTime.h"
#include "src/base/SkVx.h"
#include "src/core/SkChecksum.h"
#include "src/core/SkColorSpacePriv.h"
#include "src/core/SkMD5.h"
#include "src/core/SkOSFile.h"
#include "src/core/SkStringUtils.h"
#include "src/core/SkTHash.h"
#include "src/core/SkTaskGroup.h"
#include "src/utils/SkOSPath.h"
#include "tests/Test.h"
#include "tests/TestHarness.h"
#include "tools/AutoreleasePool.h"
#include "tools/CodecUtils.h"
#include "tools/HashAndEncode.h"
#include "tools/ProcStats.h"
#include "tools/Resources.h"
#include "tools/TestFontDataProvider.h"
#include "tools/ToolUtils.h"
#include "tools/flags/CommonFlags.h"
#include "tools/flags/CommonFlagsConfig.h"
#include "tools/fonts/FontToolUtils.h"
#include "tools/ios_utils.h"
#include "tools/trace/ChromeTracingTracer.h"
#include "tools/trace/EventTracingPriv.h"
#include "tools/trace/SkDebugfTracer.h"
#include <memory>
#include <vector>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <execinfo.h>
Go to the source code of this file.
Classes | |
struct | Running |
struct | Gold |
struct | Gold::Hash |
struct | TaggedSrc |
struct | TaggedSink |
struct | Task |
struct | DMReporter |
Macros | |
#define | SINK(t, sink, ...) if (config->getBackend().equals(t)) return new sink(__VA_ARGS__) |
#define | VIA(t, via, ...) if (tag.equals(t)) return new via(__VA_ARGS__) |
Functions | |
static | DEFINE_string (src, "tests gm skp mskp lottie rive svg image colorImage", "Source types to test.") |
static | DEFINE_bool (nameByHash, false, "If true, write to FLAGS_writePath[0]/<hash>.png instead of " "to FLAGS_writePath[0]/<config>/<sourceType>/<sourceOptions>/<name>.png") |
static | DEFINE_bool2 (pathOpsExtended, x, false, "Run extended pathOps tests.") |
static | DEFINE_string (matrix, "1 0 0 1", "2x2 scale+skew matrix to apply or upright when using " "'matrix' or 'upright' in config.") |
static | DEFINE_string (skip, "", "Space-separated config/src/srcOptions/name quadruples to skip. " "'_' matches anything. '~' negates the match. E.g. \n" "'--skip gpu skp _ _' will skip all SKPs drawn into the gpu config.\n" "'--skip gpu skp _ _ 8888 gm _ aarects' will also skip the aarects GM on 8888.\n" "'--skip ~8888 svg _ svgparse_' blocks non-8888 SVGs that contain \"svgparse_\" in " "the name.") |
static | DEFINE_string2 (readPath, r, "", "If set check for equality with golden results in this directory.") |
DEFINE_string2 (writePath, w, "", "If set, write bitmaps here as .pngs.") | |
static | DEFINE_string (uninterestingHashesFile, "", "File containing a list of uninteresting hashes. If a result hashes to something in " "this list, no image is written for that result.") |
static | DEFINE_int (shards, 1, "We're splitting source data into this many shards.") |
static | DEFINE_int (shard, 0, "Which shard do I run?") |
static | DEFINE_string (mskps, "", "Directory to read mskps from, or a single mskp file.") |
static | DEFINE_bool (forceRasterPipeline, false, "sets gSkForceRasterPipelineBlitter") |
static | DEFINE_bool (forceRasterPipelineHP, false, "sets gSkForceRasterPipelineBlitter and gForceHighPrecisionRasterPipeline") |
static | DEFINE_bool (createProtected, false, "attempts to create a protected backend context") |
static | DEFINE_string (bisect, "", "Pair of: SKP file to bisect, followed by an l/r bisect trail string (e.g., 'lrll'). The " "l/r trail specifies which half to keep at each step of a binary search through the SKP's " "paths. An empty string performs no bisect. Only the SkPaths are bisected; all other draws " "are thrown out. This is useful for finding a reduced repo case for path drawing bugs.") |
static | DEFINE_bool (ignoreSigInt, false, "ignore SIGINT signals during test execution") |
static | DEFINE_bool (checkF16, false, "Ensure that F16Norm pixels are clamped.") |
static | DEFINE_string (colorImages, "", "List of images and/or directories to decode with color correction. " "A directory with no images is treated as a fatal error.") |
static | DEFINE_bool2 (veryVerbose, V, false, "tell individual tests to be verbose.") |
static | DEFINE_bool (cpu, true, "Run CPU-bound work?") |
static | DEFINE_bool (gpu, true, "Run GPU-bound work?") |
static | DEFINE_bool (graphite, true, "Run Graphite work?") |
static | DEFINE_bool (neverYieldToWebGPU, false, "Run Graphite with never-yield context option.") |
static | DEFINE_bool (dryRun, false, "just print the tests that would be run, without actually running them.") |
static | DEFINE_string (images, "", "List of images and/or directories to decode. A directory with no images" " is treated as a fatal error.") |
static | DEFINE_bool (simpleCodec, false, "Runs of a subset of the codec tests, " "with no scaling or subsetting, always using the canvas color type.") |
static | DEFINE_string2 (match, m, nullptr, "[~][^]substring[$] [...] of name to run.\n" "Multiple matches may be separated by spaces.\n" "~ causes a matching name to always be skipped\n" "^ requires the start of the name to match\n" "$ requires the end of the name to match\n" "^ and $ requires an exact match\n" "If a name does not match any list entry,\n" "it is skipped unless some list entry starts with ~") |
static | DEFINE_bool2 (quiet, q, false, "if true, don't print status updates.") |
static | DEFINE_bool2 (verbose, v, false, "enable verbose output from the test driver.") |
static | DEFINE_string (skps, "skps", "Directory to read skps from.") |
static | DEFINE_string (lotties, "lotties", "Directory to read (Bodymovin) jsons from.") |
static | DEFINE_string (svgs, "", "Directory to read SVGs from, or a single SVG file.") |
static | DEFINE_int_2 (threads, j, -1, "Run threadsafe tests on a threadpool with this many extra threads, " "defaulting to one extra thread per core.") |
static | DEFINE_string (key, "", "Space-separated key/value pairs to add to JSON identifying this builder.") |
static | DEFINE_string (properties, "", "Space-separated key/value pairs to add to JSON identifying this run.") |
static | DEFINE_bool (rasterize_pdf, false, "Rasterize PDFs when possible.") |
static void | vlog (const char *fmt,...) SK_PRINTF_LIKE(1 |
static void | info (const char *fmt,...) SK_PRINTF_LIKE(1 |
static void | fail (const SkString &err) |
static void | dump_json () |
static void | done (const char *config, const char *src, const char *srcOptions, const char *name) |
static void | start (const char *config, const char *src, const char *srcOptions, const char *name) |
static void | find_culprit () |
static constexpr int | max_of () |
template<typename... Rest> | |
static constexpr int | max_of (int x, Rest... rest) |
static void | crash_handler (int sig) |
static void | setup_crash_handler () |
static void | add_gold (JsonWriter::BitmapResult r) |
static void | gather_gold () |
static void | gather_uninteresting_hashes () |
static bool | in_shard () |
static void | push_src (const char *tag, ImplicitString options, Src *inSrc) |
static void | push_codec_src (Path path, CodecSrc::Mode mode, CodecSrc::DstColorType dstColorType, SkAlphaType dstAlphaType, float scale) |
static void | push_android_codec_src (Path path, CodecSrc::DstColorType dstColorType, SkAlphaType dstAlphaType, int sampleSize) |
static void | push_image_gen_src (Path path, ImageGenSrc::Mode mode, SkAlphaType alphaType, bool isGpu) |
static void | push_codec_srcs (Path path) |
template<typename T > | |
void | gather_file_srcs (const CommandLineFlags::StringArray &flags, const char *ext, const char *src_name=nullptr) |
static bool | gather_srcs () |
static void | push_sink (const SkCommandLineConfig &config, Sink *s) |
static Sink * | create_sink (const GrContextOptions &grCtxOptions, const SkCommandLineConfig *config) |
static Sink * | create_via (const SkString &tag, Sink *wrapped) |
static bool | gather_sinks (const GrContextOptions &grCtxOptions, bool defaultConfigs) |
static bool | match (const char *needle, const char *haystack) |
static bool | should_skip (const char *sink, const char *src, const char *srcOptions, const char *name) |
static void | gather_tests () |
static void | run_cpu_test (skiatest::Test test) |
static void | run_ganesh_test (skiatest::Test test, const GrContextOptions &grCtxOptions) |
static void | run_graphite_test (skiatest::Test test, skiatest::graphite::TestOptions &options) |
TestHarness | CurrentTestHarness () |
int | main (int argc, char **argv) |
#define VIA | ( | t, | |
via, | |||
... | |||
) | if (tag.equals(t)) return new via(__VA_ARGS__) |
|
static |
|
static |
Definition at line 383 of file DM.cpp.
|
static |
Definition at line 979 of file DM.cpp.
Definition at line 1056 of file DM.cpp.
TestHarness CurrentTestHarness | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 263 of file DM.cpp.
|
static |
|
static |
Definition at line 234 of file DM.cpp.
|
static |
void gather_file_srcs | ( | const CommandLineFlags::StringArray & | flags, |
const char * | ext, | ||
const char * | src_name = nullptr |
||
) |
Definition at line 890 of file DM.cpp.
|
static |
|
static |
Definition at line 1081 of file DM.cpp.
|
static |
Definition at line 911 of file DM.cpp.
|
static |
Definition at line 1475 of file DM.cpp.
|
static |
Definition at line 469 of file DM.cpp.
|
static |
|
static |
Definition at line 1553 of file DM.cpp.
|
static |
|
staticconstexpr |
|
static |
Definition at line 587 of file DM.cpp.
|
static |
Definition at line 523 of file DM.cpp.
|
static |
Definition at line 717 of file DM.cpp.
|
static |
Definition at line 622 of file DM.cpp.
|
static |
Definition at line 952 of file DM.cpp.
|
static |
|
static |
Definition at line 1508 of file DM.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
extern |
Definition at line 45 of file GrContextFactory.cpp.
|
static |
|
extern |
Definition at line 29 of file SkRasterPipeline.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
|
extern |
Definition at line 44 of file SkBlitter.cpp.