5#include "flutter/display_list/testing/dl_test_surface_provider.h"
13#ifdef ENABLE_SOFTWARE_BENCHMARKS
14#include "flutter/display_list/testing/dl_test_surface_software.h"
16#ifdef ENABLE_OPENGL_BENCHMARKS
17#include "flutter/display_list/testing/dl_test_surface_gl.h"
19#ifdef ENABLE_METAL_BENCHMARKS
20#include "flutter/display_list/testing/dl_test_surface_metal.h"
40#ifdef ENABLE_SOFTWARE_BENCHMARKS
42 return std::make_unique<DlSoftwareSurfaceProvider>();
44#ifdef ENABLE_OPENGL_BENCHMARKS
46 return std::make_unique<DlOpenGLSurfaceProvider>();
48#ifdef ENABLE_METAL_BENCHMARKS
50 return std::make_unique<DlMetalSurfaceProvider>();
60#ifdef BENCHMARKS_NO_SNAPSHOT
sk_sp< SkImage > makeRasterImage(GrDirectContext *, CachingHint cachingHint=kDisallow_CachingHint) const
virtual std::shared_ptr< DlSurfaceInstance > GetPrimarySurface() const =0
virtual bool Snapshot(std::string &filename) const
static std::string BackendName(BackendType type)
static std::unique_ptr< DlSurfaceProvider > Create(BackendType backend_type)
virtual BackendType backend_type() const =0
SK_API bool Encode(SkWStream *dst, const SkPixmap &src, const Options &options)
sk_sp< const SkImage > image
fml::UniqueFD OpenFixturesDirectory()
Opens the fixtures directory for the unit-test harness.
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
bool WriteAtomically(const fml::UniqueFD &base_directory, const char *file_name, const Mapping &mapping)