Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
GrContextThreadSafeProxy.cpp File Reference
#include "include/gpu/GrContextThreadSafeProxy.h"
#include "include/core/SkTextureCompressionType.h"
#include "include/private/chromium/GrSurfaceCharacterization.h"
#include "src/gpu/ganesh/GrBaseContextPriv.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrContextThreadSafeProxyPriv.h"
#include "src/gpu/ganesh/GrThreadSafeCache.h"
#include "src/gpu/ganesh/GrThreadSafePipelineBuilder.h"
#include "src/gpu/ganesh/effects/GrSkSLFP.h"
#include "src/gpu/ganesh/surface/SkSurface_Ganesh.h"
#include <memory>

Go to the source code of this file.

Functions

static uint32_t next_id ()
 

Function Documentation

◆ next_id()

static uint32_t next_id ( )
static

Definition at line 22 of file GrContextThreadSafeProxy.cpp.

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