/external/webrtc/webrtc/base/ |
D | callback_unittest.cc | 40 int RefCount() const { return count_; } in RefCount() function in rtc::__anona9cefe470111::RefCountedBindTester 100 EXPECT_EQ(0, t.RefCount()); in TEST() 103 EXPECT_EQ(1, t.RefCount()); in TEST() 105 EXPECT_EQ(1, t.RefCount()); in TEST() 107 EXPECT_EQ(1, t.RefCount()); in TEST() 109 EXPECT_EQ(0, t.RefCount()); in TEST() 114 EXPECT_EQ(0, t.RefCount()); in TEST() 118 EXPECT_EQ(1, t.RefCount()); in TEST() 121 EXPECT_EQ(1, t.RefCount()); in TEST() 123 EXPECT_EQ(0, t.RefCount()); in TEST() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | shaderobj.c | 69 ASSERT(old->RefCount > 0); in _mesa_reference_shader() 70 old->RefCount--; in _mesa_reference_shader() 73 deleteFlag = (old->RefCount == 0); in _mesa_reference_shader() 87 sh->RefCount++; in _mesa_reference_shader() 97 shader->RefCount = 1; in _mesa_init_shader() 209 ASSERT(old->RefCount > 0); in _mesa_reference_shader_program() 210 old->RefCount--; in _mesa_reference_shader_program() 213 (void *) old, old->Name, old->RefCount); in _mesa_reference_shader_program() 215 deleteFlag = (old->RefCount == 0); in _mesa_reference_shader_program() 228 shProg->RefCount++; in _mesa_reference_shader_program() [all …]
|
D | renderbuffer.c | 45 rb->RefCount = 0; in _mesa_init_renderbuffer() 155 ASSERT(oldRb->RefCount > 0); in _mesa_reference_renderbuffer_() 156 oldRb->RefCount--; in _mesa_reference_renderbuffer_() 158 deleteFlag = (oldRb->RefCount == 0); in _mesa_reference_renderbuffer_() 173 rb->RefCount++; in _mesa_reference_renderbuffer_()
|
D | shared.c | 123 assert(shared->DefaultTex[TEXTURE_1D_INDEX]->RefCount == 1); in _mesa_alloc_shared_state() 173 ASSERT(prog->RefCount == 1); /* should only be referenced by hash table */ in delete_program_cb() 174 prog->RefCount = 0; /* now going away */ in delete_program_cb() 258 fb->RefCount = 0; in delete_framebuffer_cb() 276 rb->RefCount = 0; /* see comment for FBOs above */ in delete_renderbuffer_cb() 413 assert(old->RefCount >= 1); in _mesa_reference_shared_state() 414 old->RefCount--; in _mesa_reference_shared_state() 415 delete = (old->RefCount == 0); in _mesa_reference_shared_state() 428 state->RefCount++; in _mesa_reference_shared_state()
|
D | arrayobj.c | 142 ASSERT(oldObj->RefCount > 0); in _mesa_reference_array_object_() 143 oldObj->RefCount--; in _mesa_reference_array_object_() 146 (void *) oldObj, oldObj->Name, oldObj->RefCount); in _mesa_reference_array_object_() 148 deleteFlag = (oldObj->RefCount == 0); in _mesa_reference_array_object_() 163 if (arrayObj->RefCount == 0) { in _mesa_reference_array_object_() 170 arrayObj->RefCount++; in _mesa_reference_array_object_() 173 (void *) arrayObj, arrayObj->Name, arrayObj->RefCount); in _mesa_reference_array_object_() 216 obj->RefCount = 1; in _mesa_initialize_array_object()
|
D | transformfeedback.c | 64 ASSERT(oldObj->RefCount > 0); in reference_transform_feedback_object() 65 oldObj->RefCount--; in reference_transform_feedback_object() 67 if (oldObj->RefCount == 0) { in reference_transform_feedback_object() 79 if (obj->RefCount == 0) { in reference_transform_feedback_object() 84 obj->RefCount++; in reference_transform_feedback_object() 118 assert(ctx->TransformFeedback.DefaultObject->RefCount == 1); in _mesa_init_transform_feedback() 123 assert(ctx->TransformFeedback.DefaultObject->RefCount == 2); in _mesa_init_transform_feedback() 216 obj->RefCount = 1; in new_transform_feedback()
|
D | syncobj.c | 189 syncObj->RefCount++; in _mesa_ref_sync_object() 198 syncObj->RefCount--; in _mesa_unref_sync_object() 199 if (syncObj->RefCount == 0) { in _mesa_unref_sync_object() 279 syncObj->RefCount = 1; in _mesa_FenceSync()
|
D | framebuffer.c | 133 fb->RefCount = 1; in _mesa_initialize_window_framebuffer() 174 fb->RefCount = 1; in _mesa_initialize_user_framebuffer() 209 assert(fb->RefCount == 0); in _mesa_free_framebuffer_data() 243 ASSERT(oldFb->RefCount > 0); in _mesa_reference_framebuffer_() 244 oldFb->RefCount--; in _mesa_reference_framebuffer_() 245 deleteFlag = (oldFb->RefCount == 0); in _mesa_reference_framebuffer_() 257 fb->RefCount++; in _mesa_reference_framebuffer_()
|
D | mtypes.h | 1240 GLint RefCount; member 1266 GLint RefCount; /**< reference count */ member 1509 GLint RefCount; member 1576 GLint RefCount; member 1807 GLint RefCount; member 1931 GLint RefCount; member 2144 GLint RefCount; member 2189 GLint RefCount; /**< Reference count */ member 2288 GLint RefCount; /**< Reference count */ member 2528 GLint RefCount; /**< Reference count */ member [all …]
|
D | texobj.c | 116 obj->RefCount = 1; in _mesa_initialize_texture_object() 353 ASSERT(oldTex->RefCount > 0); in _mesa_reference_texobj_() 354 oldTex->RefCount--; in _mesa_reference_texobj_() 356 deleteFlag = (oldTex->RefCount == 0); in _mesa_reference_texobj_() 375 if (tex->RefCount == 0) { in _mesa_reference_texobj_() 382 tex->RefCount++; in _mesa_reference_texobj_() 785 assert(texObj->RefCount == 1); in _mesa_get_fallback_texture() 1250 early_out = ((ctx->Shared->RefCount == 1) in _mesa_BindTexture()
|
D | samplerobj.c | 70 ASSERT(oldSamp->RefCount > 0); in _mesa_reference_sampler_object_() 71 oldSamp->RefCount--; in _mesa_reference_sampler_object_() 74 (void *) oldSamp, oldSamp->Name, oldSamp->RefCount); in _mesa_reference_sampler_object_() 76 deleteFlag = (oldSamp->RefCount == 0); in _mesa_reference_sampler_object_() 91 if (samp->RefCount == 0) { in _mesa_reference_sampler_object_() 98 samp->RefCount++; in _mesa_reference_sampler_object_() 101 (void *) samp, samp->Name, samp->RefCount); in _mesa_reference_sampler_object_() 117 sampObj->RefCount = 1; in _mesa_init_sampler_object()
|
D | atifragshader.c | 72 s->RefCount = 1; in _mesa_new_ati_fragment_shader() 255 curProg->RefCount--; in _mesa_BindFragmentShaderATI() 256 if (curProg->RefCount <= 0) { in _mesa_BindFragmentShaderATI() 285 newProg->RefCount++; in _mesa_BindFragmentShaderATI() 318 prog->RefCount--; in _mesa_DeleteFragmentShaderATI() 319 if (prog->RefCount <= 0) { in _mesa_DeleteFragmentShaderATI()
|
/external/sfntly/cpp/src/sfntly/port/ |
D | refcount.h | 102 class RefCount { 105 virtual ~RefCount() {} in ~RefCount() 123 class RefCounted : virtual public RefCount { 201 RefCount* p = static_cast<RefCount*>(pT); 250 RefCount* p = static_cast<RefCount*>(p_); in Release()
|
/external/deqp/framework/delibs/decpp/ |
D | dePoolArray.cpp | 189 class RefCount class 192 RefCount (void) in RefCount() function in de::__anon4738aa570111::RefCount 197 RefCount (int* count) in RefCount() function in de::__anon4738aa570111::RefCount 203 RefCount (const RefCount& other) in RefCount() function in de::__anon4738aa570111::RefCount 210 ~RefCount (void) in ~RefCount() 216 RefCount& operator= (const RefCount& other) in operator =() 241 PoolArray<RefCount> arr (&pool); in sideEffectTest() 243 RefCount counter (&count); in sideEffectTest()
|
/external/mesa3d/src/egl/main/ |
D | egldisplay.c | 385 res->RefCount = 1; in _eglInitResource() 395 assert(res && res->RefCount > 0); in _eglGetResource() 397 res->RefCount++; in _eglGetResource() 407 assert(res && res->RefCount > 0); in _eglPutResource() 408 res->RefCount--; in _eglPutResource() 409 return (!res->RefCount); in _eglPutResource() 455 assert(res->RefCount); in _eglUnlinkResource()
|
/external/mesa3d/src/mesa/program/ |
D | program.c | 126 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_init_program() 152 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_free_program_data() 153 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_free_program_data() 190 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_update_default_objects_program() 191 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_update_default_objects_program() 197 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_update_default_objects_program() 274 prog->RefCount = 1; in _mesa_init_program_struct() 380 ASSERT(prog->RefCount==0); in _mesa_delete_program() 447 (*ptr)->RefCount - 1); in _mesa_reference_program_() 449 ASSERT((*ptr)->RefCount > 0); in _mesa_reference_program_() [all …]
|
/external/llvm/lib/CodeGen/ |
D | InterferenceCache.h | 49 unsigned RefCount; variable 97 Entry() : PhysReg(0), Tag(0), RefCount(0), Indexes(nullptr), LIS(nullptr) {} in Entry() 109 void addRef(int Delta) { RefCount += Delta; } in addRef() 111 bool hasRefs() const { return RefCount > 0; } in hasRefs()
|
/external/clang/include/clang/Rewrite/Core/ |
D | RewriteRope.h | 35 unsigned RefCount; member 38 void Retain() { ++RefCount; } in Retain() 41 assert(RefCount > 0 && "Reference count is already zero."); in Release() 42 if (--RefCount == 0) in Release()
|
/external/llvm/lib/Analysis/ |
D | AliasAnalysisEvaluator.cpp | 53 unsigned NoModRefCount, ModCount, RefCount, ModRefCount; member in __anon866283a60111::AAEval 68 NoModRefCount = ModCount = RefCount = ModRefCount = 0; in doInitialization() 307 ++RefCount; in runOnFunction() 333 ++RefCount; in runOnFunction() 375 unsigned ModRefSum = NoModRefCount + ModCount + RefCount + ModRefCount; in doFinalization() 385 errs() << " " << RefCount << " ref responses "; in doFinalization() 386 PrintPercent(RefCount, ModRefSum); in doFinalization() 391 << ModCount * 100 / ModRefSum << "%/" << RefCount * 100 / ModRefSum in doFinalization()
|
/external/llvm/include/llvm/ADT/ |
D | IntrusiveRefCntPtr.h | 101 mutable std::atomic<int> RefCount; variable 104 ThreadSafeRefCountedBase() : RefCount(0) {} in ThreadSafeRefCountedBase() 107 void Retain() const { ++RefCount; } in Retain() 110 int NewRefCount = --RefCount; in Release()
|
/external/llvm/include/llvm/Analysis/ |
D | AliasSetTracker.h | 119 unsigned RefCount : 28; variable 149 void addRef() { ++RefCount; } in addRef() 151 assert(RefCount >= 1 && "Invalid reference count detected!"); in dropRef() 152 if (--RefCount == 0) in dropRef() 228 : PtrList(nullptr), PtrListEnd(&PtrList), Forward(nullptr), RefCount(0),
|
/external/sfntly/cpp/src/sfntly/table/ |
D | font_data_table.h | 28 class FontDataTable : virtual public RefCount { 32 class Builder : virtual public RefCount {
|
/external/clang/test/Analysis/inlining/ |
D | false-positive-suppression.cpp | 7 class RefCount { class 30 RefCount<ParserInputState> inputState;
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CallEvent.h | 134 mutable unsigned RefCount; 137 void Retain() const { ++RefCount; } in Retain() 144 : State(state), LCtx(lctx), Origin(E), RefCount(0) {} in CallEvent() 147 : State(state), LCtx(lctx), Origin(D), RefCount(0) {} in CallEvent() 152 Data(Original.Data), Location(Original.Location), RefCount(0) {} in CallEvent() 1064 assert(RefCount > 0 && "Reference count is already zero."); in Release() 1065 --RefCount; in Release() 1067 if (RefCount > 0) in Release()
|
/external/sfntly/cpp/src/sfntly/tools/subsetter/ |
D | table_subsetter.h | 27 class TableSubsetter : virtual public RefCount {
|