Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
SkOpBuilder.cpp File Reference
#include "include/core/SkPath.h"
#include "include/core/SkPathTypes.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkTypes.h"
#include "include/pathops/SkPathOps.h"
#include "include/private/base/SkTArray.h"
#include "include/private/base/SkTDArray.h"
#include "include/private/base/SkTo.h"
#include "src/base/SkArenaAlloc.h"
#include "src/core/SkPathEnums.h"
#include "src/core/SkPathPriv.h"
#include "src/pathops/SkOpContour.h"
#include "src/pathops/SkOpEdgeBuilder.h"
#include "src/pathops/SkOpSegment.h"
#include "src/pathops/SkOpSpan.h"
#include "src/pathops/SkPathOpsCommon.h"
#include "src/pathops/SkPathOpsTypes.h"
#include "src/pathops/SkPathWriter.h"
#include <cstdint>

Go to the source code of this file.

Functions

static bool one_contour (const SkPath &path)
 

Function Documentation

◆ one_contour()

static bool one_contour ( const SkPath path)
static

Definition at line 30 of file SkOpBuilder.cpp.

30 {
31 SkSTArenaAlloc<256> allocator;
32 int verbCount = path.countVerbs();
33 uint8_t* verbs = (uint8_t*) allocator.makeArrayDefault<uint8_t>(verbCount);
34 (void) path.getVerbs(verbs, verbCount);
35 for (int index = 1; index < verbCount; ++index) {
36 if (verbs[index] == SkPath::kMove_Verb) {
37 return false;
38 }
39 }
40 return true;
41}
T * makeArrayDefault(size_t count)
@ kMove_Verb
Definition SkPath.h:1458
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switches.h:57