Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkTileMode.h"
#include "include/core/SkTypes.h"
#include "include/core/SkVertices.h"
#include "include/effects/SkGradientShader.h"
#include "include/effects/SkRuntimeEffect.h"
#include "include/private/base/SkTDArray.h"
#include "src/base/SkRandom.h"
#include "src/core/SkVerticesPriv.h"
#include "src/shaders/SkLocalMatrixShader.h"
#include "src/utils/SkPatchUtils.h"
#include "tools/DecodeUtils.h"
#include "tools/Resources.h"
#include "tools/ToolUtils.h"
#include <initializer_list>
#include <utility>
Go to the source code of this file.
Classes | |
class | VerticesGM |
Functions | |
static sk_sp< SkShader > | make_shader1 (SkScalar shaderScale) |
static sk_sp< SkShader > | make_shader2 () |
static sk_sp< SkColorFilter > | make_color_filter () |
static void | fill_mesh (SkPoint pts[kMeshVertexCnt], SkPoint texs[kMeshVertexCnt], SkColor colors[kMeshVertexCnt], SkScalar shaderScale) |
static void | draw_batching (SkCanvas *canvas) |
DEF_SIMPLE_GM (vertices_batching, canvas, 100, 500) | |
DEF_SIMPLE_GM (vertices_perspective, canvas, 256, 256) | |
DEF_SIMPLE_GM (skbug_13047, canvas, 200, 200) | |
DEF_SIMPLE_GM_BG (vertices_collapsed, canvas, 50, 50, SK_ColorWHITE) | |
Variables | |
static constexpr SkScalar | kShaderSize = 40 |
static constexpr SkScalar | kMeshSize = 30 |
static constexpr uint16_t | kMeshFan [] |
static const int | kMeshIndexCnt = (int)std::size(kMeshFan) |
static const int | kMeshVertexCnt = 9 |
DEF_SIMPLE_GM | ( | skbug_13047 | , |
canvas | , | ||
200 | , | ||
200 | |||
) |
Definition at line 310 of file vertices.cpp.
DEF_SIMPLE_GM | ( | vertices_batching | , |
canvas | , | ||
100 | , | ||
500 | |||
) |
Definition at line 265 of file vertices.cpp.
DEF_SIMPLE_GM | ( | vertices_perspective | , |
canvas | , | ||
256 | , | ||
256 | |||
) |
Definition at line 273 of file vertices.cpp.
DEF_SIMPLE_GM_BG | ( | vertices_collapsed | , |
canvas | , | ||
50 | , | ||
50 | , | ||
SK_ColorWHITE | |||
) |
Definition at line 334 of file vertices.cpp.
|
static |
Definition at line 211 of file vertices.cpp.
|
static |
Definition at line 76 of file vertices.cpp.
|
static |
Definition at line 61 of file vertices.cpp.
Definition at line 39 of file vertices.cpp.
Definition at line 57 of file vertices.cpp.
|
staticconstexpr |
Definition at line 68 of file vertices.cpp.
Definition at line 73 of file vertices.cpp.
|
staticconstexpr |
Definition at line 65 of file vertices.cpp.
|
static |
Definition at line 74 of file vertices.cpp.
|
staticconstexpr |
Definition at line 38 of file vertices.cpp.