Flutter Engine
The Flutter Engine
|
#include "src/gpu/ganesh/ops/GrOvalOpFactory.h"
#include "include/core/SkStrokeRec.h"
#include "include/private/base/SkFloatingPoint.h"
#include "src/core/SkMatrixPriv.h"
#include "src/core/SkRRectPriv.h"
#include "src/gpu/BufferWriter.h"
#include "src/gpu/KeyBuilder.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrDrawOpTest.h"
#include "src/gpu/ganesh/GrGeometryProcessor.h"
#include "src/gpu/ganesh/GrOpFlushState.h"
#include "src/gpu/ganesh/GrProcessor.h"
#include "src/gpu/ganesh/GrProcessorUnitTest.h"
#include "src/gpu/ganesh/GrProgramInfo.h"
#include "src/gpu/ganesh/GrResourceProvider.h"
#include "src/gpu/ganesh/GrShaderCaps.h"
#include "src/gpu/ganesh/GrStyle.h"
#include "src/gpu/ganesh/glsl/GrGLSLFragmentShaderBuilder.h"
#include "src/gpu/ganesh/glsl/GrGLSLProgramDataManager.h"
#include "src/gpu/ganesh/glsl/GrGLSLUniformHandler.h"
#include "src/gpu/ganesh/glsl/GrGLSLVarying.h"
#include "src/gpu/ganesh/glsl/GrGLSLVertexGeoBuilder.h"
#include "src/gpu/ganesh/ops/GrMeshDrawOp.h"
#include "src/gpu/ganesh/ops/GrSimpleMeshDrawOpHelper.h"
#include <utility>
Go to the source code of this file.
Classes | |
class | CircleGeometryProcessor |
class | ButtCapDashedCircleGeometryProcessor |
class | EllipseGeometryProcessor |
class | DIEllipseGeometryProcessor |
class | CircleOp |
struct | CircleOp::ArcParams |
class | ButtCapDashedCircleOp |
class | EllipseOp |
class | DIEllipseOp |
class | CircularRRectOp |
class | EllipticalRRectOp |
Enumerations | |
enum class | DIEllipseStyle { kStroke = 0 , kHairline , kFill } |
enum | RRectType { kFill_RRectType , kStroke_RRectType , kOverstroke_RRectType } |
Functions | |
static int | circle_type_to_vert_count (bool stroked) |
static int | circle_type_to_index_count (bool stroked) |
static const uint16_t * | circle_type_to_indices (bool stroked) |
static int | rrect_type_to_vert_count (RRectType type) |
static int | rrect_type_to_index_count (RRectType type) |
static const uint16_t * | rrect_type_to_indices (RRectType type) |
SKGPU_DECLARE_STATIC_UNIQUE_KEY (gStrokeRRectOnlyIndexBufferKey) | |
SKGPU_DECLARE_STATIC_UNIQUE_KEY (gRRectOnlyIndexBufferKey) | |
static sk_sp< const GrBuffer > | get_rrect_index_buffer (RRectType type, GrResourceProvider *resourceProvider) |
GrOp::Owner | make_rrect_op (GrRecordingContext *context, GrPaint &&paint, const SkMatrix &viewMatrix, const SkRRect &rrect, const SkStrokeRec &stroke) |
|
strong |
The output of this effect is a modulation of the input color and coverage for an ellipse, specified as a 2D offset from center for both the outer and inner paths (if stroked). The implict equation used is for a unit circle (x^2 + y^2 - 1 = 0) and the edge corrected by using differentials.
The result is device-independent and can be used with any affine matrix.
Enumerator | |
---|---|
kStroke | |
kHairline | |
kFill |
Definition at line 729 of file GrOvalOpFactory.cpp.
enum RRectType |
Enumerator | |
---|---|
kFill_RRectType | |
kStroke_RRectType | |
kOverstroke_RRectType |
Definition at line 2461 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 975 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 979 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 971 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2858 of file GrOvalOpFactory.cpp.
GrOp::Owner make_rrect_op | ( | GrRecordingContext * | context, |
GrPaint && | paint, | ||
const SkMatrix & | viewMatrix, | ||
const SkRRect & | rrect, | ||
const SkStrokeRec & | stroke | ||
) |
Definition at line 3226 of file GrOvalOpFactory.cpp.
Definition at line 2478 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2490 of file GrOvalOpFactory.cpp.
Definition at line 2467 of file GrOvalOpFactory.cpp.
SKGPU_DECLARE_STATIC_UNIQUE_KEY | ( | gRRectOnlyIndexBufferKey | ) |
SKGPU_DECLARE_STATIC_UNIQUE_KEY | ( | gStrokeRRectOnlyIndexBufferKey | ) |
|
static |
Definition at line 913 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2422 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2450 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 924 of file GrOvalOpFactory.cpp.
|
staticconstexpr |
Definition at line 953 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 966 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2455 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2453 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 967 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2457 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2854 of file GrOvalOpFactory.cpp.
|
staticconstexpr |
Definition at line 955 of file GrOvalOpFactory.cpp.
|
staticconstexpr |
Definition at line 941 of file GrOvalOpFactory.cpp.
|
staticconstexpr |
Definition at line 940 of file GrOvalOpFactory.cpp.
|
staticconstexpr |
Definition at line 954 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 969 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2459 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 2458 of file GrOvalOpFactory.cpp.
|
static |
Definition at line 968 of file GrOvalOpFactory.cpp.