Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkData.h"
#include "include/core/SkFont.h"
#include "include/core/SkPaint.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkSurface.h"
#include "include/effects/SkGradientShader.h"
#include "include/effects/SkImageFilters.h"
#include "include/effects/SkRuntimeEffect.h"
#include "src/base/SkRandom.h"
#include "src/core/SkRuntimeEffectPriv.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrRecordingContextPriv.h"
#include "tools/Resources.h"
#include "tools/ToolUtils.h"
#include "tools/fonts/FontToolUtils.h"
Go to the source code of this file.
Macros | |
#define | SKSL_MATRIX_SELECTORS |
Functions | |
static void | next_column (SkCanvas *canvas) |
static void | next_row (SkCanvas *canvas) |
static constexpr int | columns_to_width (int columns) |
static constexpr int | rows_to_height (int rows) |
static void | draw_label (SkCanvas *canvas, const char *label) |
static SkBitmap | draw_shader (SkCanvas *canvas, sk_sp< SkShader > shader, bool allowRasterFallback=true) |
static SkString | make_unary_sksl_1d (const char *fn, bool requireES3) |
static void | plot (SkCanvas *canvas, const char *fn, float xMin, float xMax, float yMin, float yMax, const char *label=nullptr, bool requireES3=false) |
static void | plot_es3 (SkCanvas *canvas, const char *fn, float xMin, float xMax, float yMin, float yMax, const char *label=nullptr) |
DEF_SIMPLE_GM (runtime_intrinsics_trig, canvas, columns_to_width(3), rows_to_height(5)) | |
DEF_SIMPLE_GPU_GM_CAN_FAIL (runtime_intrinsics_trig_es3, ctx, canvas, errorMsg, columns_to_width(3), rows_to_height(2)) | |
DEF_SIMPLE_GM (runtime_intrinsics_exponential, canvas, columns_to_width(2), rows_to_height(5)) | |
DEF_SIMPLE_GM (runtime_intrinsics_common, canvas, columns_to_width(6), rows_to_height(7)) | |
DEF_SIMPLE_GPU_GM_CAN_FAIL (runtime_intrinsics_common_es3, ctx, canvas, errorMsg, columns_to_width(6), rows_to_height(5)) | |
DEF_SIMPLE_GM (runtime_intrinsics_geometric, canvas, columns_to_width(4), rows_to_height(5)) | |
static SkString | make_matrix_comp_mult_sksl (int dim) |
template<int N> | |
static void | plot_matrix_comp_mult (SkCanvas *canvas, std::array< float, N *N > mtx1, std::array< float, N *N > mtx2, const char *label) |
static SkString | make_matrix_inverse_sksl (int dim) |
template<int N> | |
static void | plot_matrix_inverse (SkCanvas *canvas, std::array< float, N *N > mtx, const char *label) |
DEF_SIMPLE_GM (runtime_intrinsics_matrix, canvas, columns_to_width(3), rows_to_height(2)) | |
static SkString | make_bvec_sksl (const char *type, const char *fn) |
template<typename T = float> | |
static void | plot_bvec (SkCanvas *canvas, const char *fn, const char *label) |
DEF_SIMPLE_GM (runtime_intrinsics_relational, canvas, columns_to_width(4), rows_to_height(6)) | |
Variables | |
static constexpr int | kBoxSize = 100 |
static constexpr int | kPadding = 5 |
static constexpr int | kLabelHeight = 15 |
#define SKSL_MATRIX_SELECTORS |
Definition at line 411 of file runtimeintrinsics.cpp.
Definition at line 42 of file runtimeintrinsics.cpp.
DEF_SIMPLE_GM | ( | runtime_intrinsics_common | , |
canvas | , | ||
columns_to_width(6) | , | ||
rows_to_height(7) | |||
) |
Definition at line 262 of file runtimeintrinsics.cpp.
DEF_SIMPLE_GM | ( | runtime_intrinsics_exponential | , |
canvas | , | ||
columns_to_width(2) | , | ||
rows_to_height(5) | |||
) |
DEF_SIMPLE_GM | ( | runtime_intrinsics_geometric | , |
canvas | , | ||
columns_to_width(4) | , | ||
rows_to_height(5) | |||
) |
DEF_SIMPLE_GM | ( | runtime_intrinsics_matrix | , |
canvas | , | ||
columns_to_width(3) | , | ||
rows_to_height(2) | |||
) |
Definition at line 510 of file runtimeintrinsics.cpp.
DEF_SIMPLE_GM | ( | runtime_intrinsics_relational | , |
canvas | , | ||
columns_to_width(4) | , | ||
rows_to_height(6) | |||
) |
Definition at line 597 of file runtimeintrinsics.cpp.
DEF_SIMPLE_GM | ( | runtime_intrinsics_trig | , |
canvas | , | ||
columns_to_width(3) | , | ||
rows_to_height(5) | |||
) |
DEF_SIMPLE_GPU_GM_CAN_FAIL | ( | runtime_intrinsics_common_es3 | , |
ctx | , | ||
canvas | , | ||
errorMsg | , | ||
columns_to_width(6) | , | ||
rows_to_height(5) | |||
) |
Definition at line 316 of file runtimeintrinsics.cpp.
DEF_SIMPLE_GPU_GM_CAN_FAIL | ( | runtime_intrinsics_trig_es3 | , |
ctx | , | ||
canvas | , | ||
errorMsg | , | ||
columns_to_width(3) | , | ||
rows_to_height(2) | |||
) |
Definition at line 205 of file runtimeintrinsics.cpp.
|
static |
Definition at line 50 of file runtimeintrinsics.cpp.
|
static |
Definition at line 62 of file runtimeintrinsics.cpp.
|
static |
Definition at line 560 of file runtimeintrinsics.cpp.
Definition at line 432 of file runtimeintrinsics.cpp.
Definition at line 472 of file runtimeintrinsics.cpp.
|
static |
Definition at line 99 of file runtimeintrinsics.cpp.
|
static |
Definition at line 32 of file runtimeintrinsics.cpp.
|
static |
Definition at line 36 of file runtimeintrinsics.cpp.
|
static |
Definition at line 118 of file runtimeintrinsics.cpp.
|
static |
Definition at line 575 of file runtimeintrinsics.cpp.
|
static |
Definition at line 161 of file runtimeintrinsics.cpp.
|
static |
Definition at line 447 of file runtimeintrinsics.cpp.
|
static |
Definition at line 487 of file runtimeintrinsics.cpp.
Definition at line 46 of file runtimeintrinsics.cpp.
|
staticconstexpr |
Definition at line 28 of file runtimeintrinsics.cpp.
|
staticconstexpr |
Definition at line 30 of file runtimeintrinsics.cpp.
|
staticconstexpr |
Definition at line 29 of file runtimeintrinsics.cpp.