void Buffer::unlock() { assert((isLocked()) && "Cannot unlock this buffer, it is not locked!"); // Otherwise, unlock the real one unlockImpl(); mIsLocked = false; }
void HardwareBuffer::unlock() { assert(isLocked() && "Cannot unlock this buffer, it is not locked!"); if (mUseShadowBuffer && mShadowBuffer->isLocked()) { mShadowBuffer->unlock(); _updateFromShadow(); } else { unlockImpl(); mIsLocked = FALSE; } }