Flutter Engine
The Flutter Engine
Namespaces | Functions | Variables
dl_benchmarks.cc File Reference
#include "flutter/display_list/benchmarking/dl_benchmarks.h"
#include "flutter/display_list/dl_builder.h"
#include "flutter/display_list/dl_op_flags.h"
#include "flutter/display_list/skia/dl_sk_canvas.h"
#include "flutter/display_list/testing/dl_test_snippets.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkPoint.h"
#include "third_party/skia/include/core/SkSurface.h"
#include "third_party/skia/include/core/SkTextBlob.h"
#include "third_party/skia/include/gpu/GrDirectContext.h"
#include "third_party/skia/include/gpu/GrRecordingContext.h"
#include "third_party/skia/include/gpu/GrTypes.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 
namespace  flutter::testing
 

Functions

DlPaint flutter::testing::GetPaintForRun (unsigned attributes)
 
static void flutter::testing::FlushSubmitCpuSync (const sk_sp< SkSurface > &surface)
 
void flutter::testing::AnnotateAttributes (unsigned attributes, benchmark::State &state, const DisplayListAttributeFlags flags)
 
void flutter::testing::BM_DrawLine (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void flutter::testing::BM_DrawRect (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void flutter::testing::BM_DrawOval (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void flutter::testing::BM_DrawCircle (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void flutter::testing::BM_DrawRRect (benchmark::State &state, BackendType backend_type, unsigned attributes, SkRRect::Type type)
 
void flutter::testing::BM_DrawDRRect (benchmark::State &state, BackendType backend_type, unsigned attributes, SkRRect::Type type)
 
void flutter::testing::BM_DrawArc (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
std::vector< SkPointflutter::testing::GetPolygonPoints (size_t n, SkPoint center, SkScalar r)
 
void flutter::testing::GetLinesPath (SkPath &path, size_t sides, SkPoint center, float radius)
 
void flutter::testing::GetQuadsPath (SkPath &path, size_t sides, SkPoint center, float radius)
 
void flutter::testing::GetConicsPath (SkPath &path, size_t sides, SkPoint center, float radius)
 
void flutter::testing::GetCubicsPath (SkPath &path, size_t sides, SkPoint center, float radius)
 
void flutter::testing::MultiplyPath (SkPath &path, SkPath::Verb type, SkPoint center, size_t sides, size_t number, float radius)
 
std::string flutter::testing::VerbToString (SkPath::Verb type)
 
void flutter::testing::BM_DrawPath (benchmark::State &state, BackendType backend_type, unsigned attributes, SkPath::Verb type)
 
std::shared_ptr< DlVertices > flutter::testing::GetTestVertices (SkPoint center, float radius, size_t vertex_count, DlVertexMode mode, size_t &final_vertex_count)
 
std::string flutter::testing::VertexModeToString (DlVertexMode mode)
 
void flutter::testing::BM_DrawVertices (benchmark::State &state, BackendType backend_type, unsigned attributes, DlVertexMode mode)
 
std::vector< SkPointflutter::testing::GetTestPoints (size_t count, SkISize canvas_size)
 
std::string flutter::testing::PointModeToString (DlCanvas::PointMode mode)
 
void flutter::testing::BM_DrawPoints (benchmark::State &state, BackendType backend_type, unsigned attributes, DlCanvas::PointMode mode)
 
sk_sp< SkImageflutter::testing::ImageFromBitmapWithNewID (const SkBitmap &bitmap)
 
void flutter::testing::BM_DrawImage (benchmark::State &state, BackendType backend_type, unsigned attributes, DlImageSampling options, bool upload_bitmap)
 
std::string flutter::testing::ConstraintToString (DlCanvas::SrcRectConstraint constraint)
 
void flutter::testing::BM_DrawImageRect (benchmark::State &state, BackendType backend_type, unsigned attributes, DlImageSampling options, DlCanvas::SrcRectConstraint constraint, bool upload_bitmap)
 
std::string flutter::testing::FilterModeToString (const DlFilterMode mode)
 
void flutter::testing::BM_DrawImageNine (benchmark::State &state, BackendType backend_type, unsigned attributes, const DlFilterMode filter, bool upload_bitmap)
 
void flutter::testing::BM_DrawTextBlob (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void flutter::testing::BM_DrawShadow (benchmark::State &state, BackendType backend_type, unsigned attributes, bool transparent_occluder, SkPath::Verb type)
 
void flutter::testing::BM_SaveLayer (benchmark::State &state, BackendType backend_type, unsigned attributes, size_t save_depth)
 

Variables

constexpr size_t flutter::testing::kLinesToDraw = 10000
 
constexpr size_t flutter::testing::kRectsToDraw = 5000
 
constexpr size_t flutter::testing::kOvalsToDraw = 1000
 
constexpr size_t flutter::testing::kCirclesToDraw = 5000
 
constexpr size_t flutter::testing::kRRectsToDraw = 5000
 
constexpr size_t flutter::testing::kDRRectsToDraw = 2000
 
constexpr size_t flutter::testing::kArcSweepSetsToDraw = 1000
 
constexpr size_t flutter::testing::kImagesToDraw = 500
 
constexpr size_t flutter::testing::kFixedCanvasSize = 1024