Flutter Engine
 
Loading...
Searching...
No Matches
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/dl_text_skia.h"
#include "flutter/display_list/geometry/dl_path_builder.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/SkSurface.h"
#include "third_party/skia/include/core/SkTextBlob.h"

Go to the source code of this file.

Classes

class  flutter::testing::DlPathVerbCounter
 

Namespaces

namespace  flutter
 
namespace  flutter::testing
 

Functions

DlPaint flutter::testing::GetPaintForRun (unsigned attributes)
 
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, RRectType type)
 
void flutter::testing::BM_DrawDRRect (benchmark::State &state, BackendType backend_type, unsigned attributes, RRectType type)
 
void flutter::testing::BM_DrawArc (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
std::vector< DlPointflutter::testing::GetPolygonPoints (size_t n, DlPoint center, DlScalar r)
 
void flutter::testing::GetLinesPath (DlPathBuilder &path_builder, size_t sides, DlPoint center, float radius)
 
void flutter::testing::GetQuadsPath (DlPathBuilder &path_builder, size_t sides, DlPoint center, float radius)
 
void flutter::testing::GetConicsPath (DlPathBuilder &path_builder, size_t sides, DlPoint center, float radius)
 
void flutter::testing::GetCubicsPath (DlPathBuilder &path_builder, size_t sides, DlPoint center, float radius)
 
void flutter::testing::MultiplyPath (DlPathBuilder &path_builder, PathVerb type, DlPoint center, size_t sides, size_t number, float radius)
 
std::string flutter::testing::VerbToString (PathVerb type)
 
void flutter::testing::BM_DrawPath (benchmark::State &state, BackendType backend_type, unsigned attributes, PathVerb type)
 
std::shared_ptr< DlVerticesflutter::testing::GetTestVertices (DlPoint 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< DlPointflutter::testing::GetTestPoints (size_t count, DlISize canvas_size)
 
std::string flutter::testing::PointModeToString (DlPointMode mode)
 
void flutter::testing::BM_DrawPoints (benchmark::State &state, BackendType backend_type, unsigned attributes, DlPointMode mode)
 
sk_sp< SkImage > flutter::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 (DlSrcRectConstraint constraint)
 
void flutter::testing::BM_DrawImageRect (benchmark::State &state, BackendType backend_type, unsigned attributes, DlImageSampling options, DlSrcRectConstraint 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, PathVerb 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