Lines Matching refs:data
22 BufferData::BufferData(GLsizeiptr size, void * data) : m_size(size) in BufferData() argument
26 if (data) memcpy(buffer, data, size); in BufferData()
237 void GLSharedGroup::addBufferData(GLuint bufferId, GLsizeiptr size, void * data) in addBufferData() argument
240 m_buffers.add(bufferId, new BufferData(size, data)); in addBufferData()
243 void GLSharedGroup::updateBufferData(GLuint bufferId, GLsizeiptr size, void * data) in updateBufferData() argument
246 m_buffers.replaceValueFor(bufferId, new BufferData(size, data)); in updateBufferData()
249 … GLSharedGroup::subUpdateBufferData(GLuint bufferId, GLintptr offset, GLsizeiptr size, void * data) in subUpdateBufferData() argument
256 memcpy((char*)buf->m_fixedBuffer.ptr() + offset, data, size); in subUpdateBufferData()
428 ShaderData* data = new ShaderData; in addShaderData() local
429 if (data) { in addShaderData()
430 if (m_shaders.add(shader, data) < 0) { in addShaderData()
431 delete data; in addShaderData()
432 data = NULL; in addShaderData()
434 data->refcount = 1; in addShaderData()
436 return data != NULL; in addShaderData()
457 ShaderData* data = m_shaders.valueAt(shaderIdx); in refShaderDataLocked() local
458 data->refcount++; in refShaderDataLocked()
464 ShaderData* data = m_shaders.valueAt(shaderIdx); in unrefShaderDataLocked() local
465 if (--data->refcount == 0) { in unrefShaderDataLocked()
466 delete data; in unrefShaderDataLocked()