當前位置: 首頁>>代碼示例>>C++>>正文


C++ CB_LOGV函數代碼示例

本文整理匯總了C++中CB_LOGV函數的典型用法代碼示例。如果您正苦於以下問題:C++ CB_LOGV函數的具體用法?C++ CB_LOGV怎麽用?C++ CB_LOGV使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了CB_LOGV函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: CB_LOGV

void ConsumerBase::onFrameReplaced(const BufferItem &item) {
    CB_LOGV("onFrameReplaced");

    sp<FrameAvailableListener> listener;
    {
        Mutex::Autolock lock(mMutex);
        listener = mFrameAvailableListener.promote();
    }

    if (listener != NULL) {
        CB_LOGV("actually calling onFrameReplaced");
        listener->onFrameReplaced(item);
    }
}
開發者ID:Hazy-legacy-zf2,項目名稱:platform_frameworks_native,代碼行數:14,代碼來源:ConsumerBase.cpp

示例2: CB_LOGV

void ConsumerBase::onFrameAvailable() {
    CB_LOGV("onFrameAvailable");

    sp<FrameAvailableListener> listener;
    { // scope for the lock
        Mutex::Autolock lock(mMutex);
        listener = mFrameAvailableListener.promote();
    }

    if (listener != NULL) {
        CB_LOGV("actually calling onFrameAvailable");
        listener->onFrameAvailable();
    }
}
開發者ID:AospPlus,項目名稱:android_frameworks_native,代碼行數:14,代碼來源:ConsumerBase.cpp

示例3: CB_LOGV

status_t GonkConsumerBase::addReleaseFenceLocked(int slot,
        const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) {
    CB_LOGV("addReleaseFenceLocked: slot=%d", slot);

    // If consumer no longer tracks this graphicBuffer, we can safely
    // drop this fence, as it will never be received by the producer.
    if (!stillTracking(slot, graphicBuffer)) {
        return OK;
    }

    if (!mSlots[slot].mFence.get()) {
        mSlots[slot].mFence = fence;
    } else {
        sp<Fence> mergedFence = Fence::merge(
                                    String8::format("%.28s:%d", mName.string(), slot),
                                    mSlots[slot].mFence, fence);
        if (!mergedFence.get()) {
            CB_LOGE("failed to merge release fences");
            // synchronization is broken, the best we can do is hope fences
            // signal in order so the new fence will act like a union
            mSlots[slot].mFence = fence;
            return BAD_VALUE;
        }
        mSlots[slot].mFence = mergedFence;
    }

    return OK;
}
開發者ID:plancalculus,項目名稱:xulrunner,代碼行數:28,代碼來源:GonkConsumerBaseKK.cpp

示例4: lock

void ConsumerBase::onBuffersReleased() {
    Mutex::Autolock lock(mMutex);

    CB_LOGV("onBuffersReleased");

    if (mAbandoned) {
        // Nothing to do if we're already abandoned.
        return;
    }

    uint32_t mask = 0;
    mBufferQueue->getReleasedBuffers(&mask);
    for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) {
        if (mask & (1 << i)) {
            freeBufferLocked(i);
        }
    }
}
開發者ID:AospPlus,項目名稱:android_frameworks_native,代碼行數:18,代碼來源:ConsumerBase.cpp

示例5: lock

void ConsumerBase::onBuffersReleased() {
    Mutex::Autolock lock(mMutex);

    CB_LOGV("onBuffersReleased");

    if (mAbandoned) {
        // Nothing to do if we're already abandoned.
        return;
    }

#ifndef MTK_DEFAULT_AOSP
    // force conversion here for last buffer
    forceAuxConversionLocked();
#endif

    uint32_t mask = 0;
    mConsumer->getReleasedBuffers(&mask);
    for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) {
        if (mask & (1 << i)) {
            freeBufferLocked(i);
        }
    }
}
開發者ID:WayWingsDev,項目名稱:Source_MT6582,代碼行數:23,代碼來源:ConsumerBase.cpp

示例6: CB_LOGV

ConsumerBase::~ConsumerBase() {
	CB_LOGV("~ConsumerBase");
    abandon();
}
開發者ID:Teamlce,項目名稱:android_frameworks_native,代碼行數:4,代碼來源:ConsumerBase.cpp


注:本文中的CB_LOGV函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。