Home
last modified time | relevance | path

Searched refs:mRefCount (Results 1 – 25 of 26) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/common/
DRefCounted.cpp25 RefCounted::RefCounted(uint64_t payload) : mRefCount(kRefCountIncrement + payload) { in RefCounted()
30 return mRefCount >> kPayloadBits; in GetRefCountForTesting()
38 return kPayloadMask & mRefCount.load(std::memory_order_relaxed); in GetRefCountPayload()
42 ASSERT((mRefCount & ~kPayloadMask) != 0); in Reference()
49 mRefCount.fetch_add(kRefCountIncrement, std::memory_order_relaxed); in Reference()
53 ASSERT((mRefCount & ~kPayloadMask) != 0); in Release()
64 uint64_t previousRefCount = mRefCount.fetch_sub(kRefCountIncrement, std::memory_order_release); in Release()
DRefCounted.h42 std::atomic<uint64_t> mRefCount;
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DCLObject.h25 cl_uint getRefCount() const noexcept { return mRefCount; } in getRefCount()
27 void retain() noexcept { ++mRefCount; } in retain()
31 if (mRefCount == 0u) in release()
36 return --mRefCount == 0u; in release()
52 std::atomic<cl_uint> mRefCount;
DRefCountObject.h34 RefCountObject() : mRefCount(0) {} in RefCountObject()
38 void addRef() const { ++mRefCount; } in addRef()
42 ASSERT(mRefCount > 0); in release()
43 if (--mRefCount == 0) in release()
50 size_t getRefCount() const { return mRefCount; } in getRefCount()
53 virtual ~RefCountObject() { ASSERT(mRefCount == 0); } in ~RefCountObject()
55 mutable size_t mRefCount; variable
DCLObject.cpp13 Object::Object() : mRefCount(1u) {} in Object()
17 if (mRefCount != 0u) in ~Object()
DSurface.cpp69 mRefCount(0), in Surface()
256 mRefCount++; in makeCurrent()
269 ASSERT(mRefCount > 0); in releaseRef()
270 mRefCount--; in releaseRef()
271 if (mRefCount == 0 && mDestroyed) in releaseRef()
283 if (mRefCount == 0) in onDestroy()
538 mRefCount++; in bindTexImage()
DShader.cpp146 mRefCount(0), in Shader()
606 mRefCount++; in addRef()
611 mRefCount--; in release()
613 if (mRefCount == 0 && mDeleteStatus) in release()
621 return mRefCount; in getRefCount()
DResourceManager.cpp43 ResourceManagerBase::ResourceManagerBase() : mRefCount(1) {} in ResourceManagerBase()
49 mRefCount++; in addRef()
54 if (--mRefCount == 0) in release()
DContext.h619 void addRef() const { mRefCount++; } in addRef()
620 void release() const { mRefCount--; } in release()
621 size_t getRefCount() const { return mRefCount; } in getRefCount()
799 mutable size_t mRefCount; variable
DProgram.h669 mRefCount++; in addRef()
675 mRefCount--; in release()
677 if (mRefCount == 0 && mDeleteStatus) in release()
878 unsigned int mRefCount; variable
DShader.h266 unsigned int mRefCount; // Number of program objects this shader is attached to variable
DResourceManager.h62 size_t mRefCount;
DSurface.h225 int mRefCount; variable
DDisplay.h103 size_t mRefCount;
DDisplay.cpp553 : mRefCount(1), in ShareGroup()
582 mRefCount++; in addRef()
587 if (--mRefCount == 0) in release()
DProgram.cpp1375 mRefCount(0), in Program()
2030 ASSERT(mRefCount == 0 && mDeleteStatus); in deleteSelf()
2036 return mRefCount; in getRefCount()
DContext.cpp406 mRefCount(0), in Context()
665 ASSERT(mIsDestroyed == true && mRefCount == 0); in onDestroy()
/third_party/openh264/module/
DRefCounted.h89 ++mRefCount; in AddRef()
93 uint32_t newCount = --mRefCount; in Release()
102 : mRefCount(0) in RefCounted()
107 assert(!mRefCount); in ~RefCounted()
109 AtomicRefCount mRefCount; variable
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
DShader.cpp38 mRefCount = 0; in Shader()
272 mRefCount++; in addRef()
277 mRefCount--; in release()
279 if(mRefCount == 0 && mDeleteStatus) in release()
287 return mRefCount; in getRefCount()
DResourceManager.cpp32 mRefCount = 1; in ResourceManager()
75 mRefCount++; in addRef()
80 if(--mRefCount == 0) in release()
DResourceManager.h93 std::size_t mRefCount;
DShader.h89 unsigned int mRefCount; // Number of program objects this shader is attached to variable
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DVertexBuffer.cpp24 VertexBuffer::VertexBuffer() : mRefCount(1) in VertexBuffer()
43 mRefCount++; in addRef()
48 ASSERT(mRefCount > 0); in release()
49 mRefCount--; in release()
51 if (mRefCount == 0) in release()
DVertexBuffer.h79 unsigned int mRefCount; variable
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_utils.h564 RefCounted() : mRefCount(0) {}
565 explicit RefCounted(T &&newObject) : mRefCount(0), mObject(std::move(newObject)) {}
566 ~RefCounted() { ASSERT(mRefCount == 0 && !mObject.valid()); }
568 RefCounted(RefCounted &&copy) : mRefCount(copy.mRefCount), mObject(std::move(copy.mObject))
571 copy.mRefCount = 0;
576 std::swap(mRefCount, rhs.mRefCount);
583 ASSERT(mRefCount != std::numeric_limits<uint32_t>::max());
584 mRefCount++;
590 mRefCount--;
593 bool isReferenced() const { return mRefCount != 0; }
[all …]

12