#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"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 } |
| enum class | flutter::testing::RRectType { flutter::testing::kSimple , flutter::testing::kNinePatch , flutter::testing::kComplex } |
| enum class | flutter::testing::PathVerb { flutter::testing::kLine , flutter::testing::kQuad , flutter::testing::kConic , flutter::testing::kCubic } |
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, RRectType type) |
| void | flutter::testing::BM_DrawDRRect (benchmark::State &state, BackendType backend_type, unsigned attributes, RRectType type) |
| void | flutter::testing::BM_DrawPath (benchmark::State &state, BackendType backend_type, unsigned attributes, PathVerb type) |
| void | flutter::testing::BM_DrawPoints (benchmark::State &state, BackendType backend_type, unsigned attributes, DlPointMode 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, DlSrcRectConstraint 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, PathVerb 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 570 of file dl_benchmarks.h.
| #define DRAW_ARC_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 151 of file dl_benchmarks.h.
| #define DRAW_CIRCLE_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 141 of file dl_benchmarks.h.
| #define DRAW_DRRECT_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 300 of file dl_benchmarks.h.
| #define DRAW_IMAGE_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 329 of file dl_benchmarks.h.
| #define DRAW_IMAGE_NINE_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 395 of file dl_benchmarks.h.
| #define DRAW_IMAGE_RECT_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 349 of file dl_benchmarks.h.
| #define DRAW_LINE_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 111 of file dl_benchmarks.h.
| #define DRAW_OVAL_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 131 of file dl_benchmarks.h.
| #define DRAW_PATH_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 161 of file dl_benchmarks.h.
| #define DRAW_POINTS_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 207 of file dl_benchmarks.h.
| #define DRAW_RECT_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 121 of file dl_benchmarks.h.
| #define DRAW_RRECT_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 271 of file dl_benchmarks.h.
| #define DRAW_SHADOW_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 444 of file dl_benchmarks.h.
| #define DRAW_TEXT_BLOB_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 433 of file dl_benchmarks.h.
| #define DRAW_VERTICES_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 236 of file dl_benchmarks.h.
| #define FILL_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 559 of file dl_benchmarks.h.
| #define OTHER_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 575 of file dl_benchmarks.h.
| #define RUN_DISPLAYLIST_BENCHMARKS | ( | BACKEND | ) |
Definition at line 581 of file dl_benchmarks.h.
| #define SAVE_LAYER_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 526 of file dl_benchmarks.h.
| #define STROKE_BENCHMARKS | ( | BACKEND, | |
| ATTRIBUTES | |||
| ) |
Definition at line 546 of file dl_benchmarks.h.