Home
last modified time | relevance | path

Searched refs:sk_atomic_fetch_add (Results 1 – 8 of 8) sorted by relevance

/external/skia/include/core/
DSkAtomics.h30 T sk_atomic_fetch_add(T*, T, sk_memory_order = sk_memory_order_seq_cst);
77 inline int32_t sk_atomic_inc(int32_t* ptr) { return sk_atomic_fetch_add(ptr, +1); } in sk_atomic_inc()
78 inline int32_t sk_atomic_dec(int32_t* ptr) { return sk_atomic_fetch_add(ptr, -1); } in sk_atomic_dec()
79 inline int32_t sk_atomic_add(int32_t* ptr, int32_t v) { return sk_atomic_fetch_add(ptr, v); } in sk_atomic_add()
81 inline int64_t sk_atomic_inc(int64_t* ptr) { return sk_atomic_fetch_add<int64_t>(ptr, +1); } in sk_atomic_inc()
DSkRefCnt.h66 (void)sk_atomic_fetch_add(&fRefCnt, +1, sk_memory_order_relaxed); // No barrier required. in ref()
76 if (1 == sk_atomic_fetch_add(&fRefCnt, -1, sk_memory_order_acq_rel)) { in unref()
239 void ref() const { (void)sk_atomic_fetch_add(&fRefCnt, +1, sk_memory_order_relaxed); } in ref()
241 if (1 == sk_atomic_fetch_add(&fRefCnt, -1, sk_memory_order_acq_rel)) { in unref()
/external/skia/include/ports/
DSkAtomics_sync.h44 T sk_atomic_fetch_add(T* ptr, T val, sk_memory_order) { in sk_atomic_fetch_add() function
DSkAtomics_atomic.h29 T sk_atomic_fetch_add(T* ptr, T val, sk_memory_order mo) { in sk_atomic_fetch_add() function
DSkAtomics_std.h35 T sk_atomic_fetch_add(T* ptr, T val, sk_memory_order mo) { in sk_atomic_fetch_add() function
/external/skia/src/core/
DSkPixelRef.cpp65 genID = sk_atomic_fetch_add(&gNextGenID, 2u) + 2; // Never set the low bit. in next_gen_id()
DSkRWBuffer.cpp85 if (1 == sk_atomic_fetch_add(&fRefCnt, -1, sk_memory_order_acq_rel)) { in unref()
DSkPicture.cpp476 uint32_t next = sk_atomic_fetch_add(&gNextID, 1u); in uniqueID()