Flutter Engine
The Flutter Engine
Functions
SkEdgeBuilder.cpp File Reference
#include "src/core/SkEdgeBuilder.h"
#include "include/core/SkPath.h"
#include "include/core/SkPoint.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkFixed.h"
#include "include/private/base/SkFloatingPoint.h"
#include "include/private/base/SkSafe32.h"
#include "include/private/base/SkTo.h"
#include "src/base/SkSafeMath.h"
#include "src/core/SkAnalyticEdge.h"
#include "src/core/SkEdge.h"
#include "src/core/SkEdgeClipper.h"
#include "src/core/SkGeometry.h"
#include "src/core/SkLineClipper.h"
#include "src/core/SkPathPriv.h"

Go to the source code of this file.

Functions

template<typename Edge >
static bool is_vertical (const Edge *edge)
 

Function Documentation

◆ is_vertical()

template<typename Edge >
static bool is_vertical ( const Edge edge)
static

Definition at line 123 of file SkEdgeBuilder.cpp.

123 {
124 // We only consider edges that were originally lines to be vertical to avoid numerical issues
125 // (crbug.com/1154864).
126 return edge->fDX == 0
127 && edge->fEdgeType == Edge::kLine_Type;
128}