void IndexReader::commit(MapStringString commitUserData) { SyncLock syncLock(this); if (_hasChanges) { doCommit(commitUserData); } _hasChanges = false; }
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; }
void CCSingleThreadProxy::commitIfNeeded() { ASSERT(CCProxy::isMainThread()); m_layerTreeHost->updateLayers(); doCommit(); }
bool CCSingleThreadProxy::commitIfNeeded() { ASSERT(CCProxy::isMainThread()); if (!m_layerTreeHost->updateLayers()) return false; doCommit(); return true; }
bool CCSingleThreadProxy::commitAndComposite() { ASSERT(CCProxy::isMainThread()); CCTextureUpdater updater; if (!m_layerTreeHost->updateLayers(updater)) return false; doCommit(updater); return doComposite(); }
//----------------------------------------------------------------------------- // 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(); }
void CCSingleThreadProxy::setNeedsCommit() { ASSERT(CCProxy::isMainThread()); doCommit(); }