Flutter Engine
The Flutter Engine
|
#include "include/core/SkCanvas.h"
#include "include/core/SkM44.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRRect.h"
#include "include/core/SkVertices.h"
#include "include/private/base/SkTPin.h"
#include "tools/viewer/ClickHandlerSlide.h"
#include <unordered_set>
Go to the source code of this file.
Classes | |
struct | LocalCornerVert |
class | GraphitePrimitivesSlide |
class | GraphitePrimitivesSlide::Click |
Functions | |
static SkPaint | paint (SkColor color, float strokeWidth=-1.f, SkPaint::Join join=SkPaint::kMiter_Join) |
static std::pair< float, float > | singular_values (float a, float b, float c, float d) |
static float | local_aa_radius (const SkM44 &matrix, const SkV2 &p) |
static void | compute_corner (SkV3 devPts[19], const SkM44 &m, const SkV4 &cornerMapping, const SkV2 &cornerPt, const SkV2 &cornerRadii, const SkV4 ¢er, float centerWeight, float localAARadius, float strokeRadius, SkPaint::Join join) |
static void | compute_vertices (SkV3 devPts[kVertexCount], const SkM44 &m, const SkRRect &rrect, float strokeRadius, SkPaint::Join join) |
Variables | |
static constexpr float | kAARadius = 10.f |
static constexpr float | kMiterScale = 1.f |
static constexpr float | kBevelScale = 0.0f |
static constexpr float | kRoundScale = SK_FloatSqrt2 - 1.f |
static constexpr float | kHR2 = SK_ScalarRoot2Over2 |
static constexpr LocalCornerVert | kCornerTemplate [19] |
static const uint16_t | kBR = 0*std::size(kCornerTemplate) |
static const uint16_t | kTR = 1*std::size(kCornerTemplate) |
static const uint16_t | kTL = 2*std::size(kCornerTemplate) |
static const uint16_t | kBL = 3*std::size(kCornerTemplate) |
static const size_t | kVertexCount = 4*std::size(kCornerTemplate) |
static const uint16_t | kIndices [] |
static const uint16_t | kOuterCornerIndices [] |
static const uint16_t | kInnerCornerIndices [] |
static const uint16_t | kInteriorIndices [] |
static const uint16_t | kEdgeIndices [] |
|
static |
Definition at line 254 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 291 of file GraphitePrimitivesSlide.cpp.
Definition at line 73 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 18 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 33 of file GraphitePrimitivesSlide.cpp.
|
staticconstexpr |
Definition at line 46 of file GraphitePrimitivesSlide.cpp.
|
staticconstexpr |
Definition at line 104 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 289 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 286 of file GraphitePrimitivesSlide.cpp.
|
staticconstexpr |
Definition at line 216 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 422 of file GraphitePrimitivesSlide.cpp.
|
staticconstexpr |
Definition at line 214 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 368 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 407 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 414 of file GraphitePrimitivesSlide.cpp.
|
staticconstexpr |
Definition at line 103 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 395 of file GraphitePrimitivesSlide.cpp.
|
staticconstexpr |
Definition at line 105 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 288 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 287 of file GraphitePrimitivesSlide.cpp.
|
static |
Definition at line 290 of file GraphitePrimitivesSlide.cpp.