Flutter Engine
The Flutter Engine
|
#include "flutter/display_list/dl_canvas.h"
#include "flutter/display_list/dl_sampling_options.h"
#include "flutter/display_list/dl_vertices.h"
#include "flutter/display_list/testing/dl_test_surface_provider.h"
#include "third_party/benchmark/include/benchmark/benchmark.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPath.h"
#include "third_party/skia/include/core/SkRRect.h"
#include "third_party/skia/include/core/SkSurface.h"
#include "third_party/skia/include/core/SkVertices.h"
Go to the source code of this file.
Namespaces | |
namespace | flutter |
namespace | flutter::testing |
Macros | |
#define | DRAW_LINE_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_RECT_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_OVAL_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_CIRCLE_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_ARC_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_PATH_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_POINTS_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_VERTICES_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_RRECT_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_DRRECT_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_IMAGE_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_IMAGE_RECT_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_IMAGE_NINE_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_TEXT_BLOB_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | DRAW_SHADOW_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | SAVE_LAYER_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | STROKE_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | FILL_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | ANTI_ALIASING_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | OTHER_BENCHMARKS(BACKEND, ATTRIBUTES) |
#define | RUN_DISPLAYLIST_BENCHMARKS(BACKEND) |
Typedefs | |
using | flutter::testing::BackendType = DlSurfaceProvider::BackendType |
Enumerations | |
enum | flutter::testing::BenchmarkAttributes { flutter::testing::kEmpty = 0 , flutter::testing::kStrokedStyle = 1 << 0 , flutter::testing::kFilledStyle = 1 << 1 , flutter::testing::kHairlineStroke = 1 << 2 , flutter::testing::kAntiAliasing = 1 << 3 } |
Functions | |
DlPaint | flutter::testing::GetPaintForRun (unsigned attributes) |
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_DrawCircle (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_DrawArc (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_DrawPath (benchmark::State &state, BackendType backend_type, unsigned attributes, SkPath::Verb type) |
void | flutter::testing::BM_DrawPoints (benchmark::State &state, BackendType backend_type, unsigned attributes, DlCanvas::PointMode mode) |
void | flutter::testing::BM_DrawVertices (benchmark::State &state, BackendType backend_type, unsigned attributes, DlVertexMode mode) |
void | flutter::testing::BM_DrawImage (benchmark::State &state, BackendType backend_type, unsigned attributes, DlImageSampling options, bool upload_bitmap) |
void | flutter::testing::BM_DrawImageRect (benchmark::State &state, BackendType backend_type, unsigned attributes, DlImageSampling options, DlCanvas::SrcRectConstraint constraint, bool upload_bitmap) |
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) |
#define ANTI_ALIASING_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 562 of file dl_benchmarks.h.
#define DRAW_ARC_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 143 of file dl_benchmarks.h.
#define DRAW_CIRCLE_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 133 of file dl_benchmarks.h.
#define DRAW_DRRECT_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 292 of file dl_benchmarks.h.
#define DRAW_IMAGE_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 321 of file dl_benchmarks.h.
#define DRAW_IMAGE_NINE_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 387 of file dl_benchmarks.h.
#define DRAW_IMAGE_RECT_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 341 of file dl_benchmarks.h.
#define DRAW_LINE_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 103 of file dl_benchmarks.h.
#define DRAW_OVAL_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 123 of file dl_benchmarks.h.
#define DRAW_PATH_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 153 of file dl_benchmarks.h.
#define DRAW_POINTS_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 199 of file dl_benchmarks.h.
#define DRAW_RECT_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 113 of file dl_benchmarks.h.
#define DRAW_RRECT_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 263 of file dl_benchmarks.h.
#define DRAW_SHADOW_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 436 of file dl_benchmarks.h.
#define DRAW_TEXT_BLOB_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 425 of file dl_benchmarks.h.
#define DRAW_VERTICES_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 228 of file dl_benchmarks.h.
#define FILL_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 551 of file dl_benchmarks.h.
#define OTHER_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 567 of file dl_benchmarks.h.
#define RUN_DISPLAYLIST_BENCHMARKS | ( | BACKEND | ) |
Definition at line 573 of file dl_benchmarks.h.
#define SAVE_LAYER_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 518 of file dl_benchmarks.h.
#define STROKE_BENCHMARKS | ( | BACKEND, | |
ATTRIBUTES | |||
) |
Definition at line 538 of file dl_benchmarks.h.