Flutter Engine
The Flutter Engine
Classes | Macros | Functions
SkVertices.cpp File Reference
#include "include/core/SkVertices.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkTo.h"
#include "src/base/SkSafeMath.h"
#include "src/core/SkPicturePriv.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkSafeRange.h"
#include "src/core/SkVerticesPriv.h"
#include "src/core/SkWriteBuffer.h"
#include <atomic>
#include <new>
#include <utility>

Go to the source code of this file.

Classes

struct  SkVertices::Desc
 
struct  SkVertices::Sizes
 

Macros

#define kMode_Mask   0x0FF
 
#define kHasTexs_Mask   0x100
 
#define kHasColors_Mask   0x200
 

Functions

static uint32_t next_id ()
 

Macro Definition Documentation

◆ kHasColors_Mask

#define kHasColors_Mask   0x200

Definition at line 238 of file SkVertices.cpp.

◆ kHasTexs_Mask

#define kHasTexs_Mask   0x100

Definition at line 237 of file SkVertices.cpp.

◆ kMode_Mask

#define kMode_Mask   0x0FF

Definition at line 236 of file SkVertices.cpp.

Function Documentation

◆ next_id()

static uint32_t next_id ( )
static

Definition at line 23 of file SkVertices.cpp.

23 {
24 static std::atomic<uint32_t> nextID{1};
25
26 uint32_t id;
27 do {
28 id = nextID.fetch_add(1, std::memory_order_relaxed);
29 } while (id == SK_InvalidGenID);
30 return id;
31}
static constexpr uint32_t SK_InvalidGenID
Definition: SkTypes.h:192
const uintptr_t id