コード例 #1
0
void IndexReader::commit(MapStringString commitUserData) {
    SyncLock syncLock(this);
    if (_hasChanges) {
        doCommit(commitUserData);
    }
    _hasChanges = false;
}
コード例 #2
0
bool CCSingleThreadProxy::commitAndComposite()
{
    ASSERT(CCProxy::isMainThread());

    if (!m_layerTreeHost->initializeRendererIfNeeded())
        return false;

    // Unlink any texture backings that were deleted
    CCPrioritizedTextureManager::BackingVector evictedContentsTexturesBackings;
    {
        DebugScopedSetImplThread implThread;
        m_layerTreeHost->getEvictedContentTexturesBackings(evictedContentsTexturesBackings);
    }
    m_layerTreeHost->unlinkEvictedContentTexturesBackings(evictedContentsTexturesBackings);
    {
        DebugScopedSetImplThreadAndMainThreadBlocked implAndMainBlocked;
        m_layerTreeHost->deleteEvictedContentTexturesBackings();
    }

    CCTextureUpdateQueue queue;
    m_layerTreeHost->updateLayers(queue, m_layerTreeHostImpl->memoryAllocationLimitBytes());

    if (m_layerTreeHostImpl->contentsTexturesPurged())
        m_layerTreeHostImpl->resetContentsTexturesPurged();

    m_layerTreeHost->willCommit();
    doCommit(queue);
    bool result = doComposite();
    m_layerTreeHost->didBeginFrame();
    return result;
}
コード例 #3
0
void CCSingleThreadProxy::commitIfNeeded()
{
    ASSERT(CCProxy::isMainThread());

    m_layerTreeHost->updateLayers();

    doCommit();
}
コード例 #4
0
bool CCSingleThreadProxy::commitIfNeeded()
{
    ASSERT(CCProxy::isMainThread());

    if (!m_layerTreeHost->updateLayers())
        return false;

    doCommit();
    return true;
}
コード例 #5
0
bool CCSingleThreadProxy::commitAndComposite()
{
    ASSERT(CCProxy::isMainThread());

    CCTextureUpdater updater;

    if (!m_layerTreeHost->updateLayers(updater))
        return false;

    doCommit(updater);
    return doComposite();
}
コード例 #6
0
//-----------------------------------------------------------------------------
// onCommitName()
//-----------------------------------------------------------------------------
void LLFloaterAnimPreview::onCommitName()
{
	if (!getEnabled())
		return;

	LLVOAvatar* avatarp = mAnimPreview->getPreviewAvatar();
	LLKeyframeMotion* motionp = (LLKeyframeMotion*)avatarp->findMotion(mMotionID);

	if (motionp)
	{
		motionp->setName(getChild<LLUICtrl>("name_form")->getValue().asString());
	}

	doCommit();
}
コード例 #7
0
void CCSingleThreadProxy::setNeedsCommit()
{
    ASSERT(CCProxy::isMainThread());
    doCommit();
}