Home | History | Annotate | Download | only in gl

Lines Matching refs:fDesc

24     : fDesc(desc)
41 } else if (fDesc.fID && !fDesc.fIsWrapped) {
43 GL_CALL(gpu, DeleteBuffers(1, &fDesc.fID));
45 gpu->notifyVertexBufferDelete(fDesc.fID);
48 gpu->notifyIndexBufferDelete(fDesc.fID);
50 fDesc.fID = 0;
56 fDesc.fID = 0;
65 gpu->bindVertexBuffer(fDesc.fID);
68 gpu->bindIndexBufferAndDefaultVertexArray(fDesc.fID);
75 if (0 == fDesc.fID) {
81 (GrGLsizeiptr) fDesc.fSizeInBytes,
83 fDesc.fDynamic ? DYNAMIC_USAGE_PARAM : GR_GL_STATIC_DRAW));
94 if (0 != fDesc.fID) {
110 if (srcSizeInBytes > fDesc.fSizeInBytes) {
113 if (0 == fDesc.fID) {
118 GrGLenum usage = fDesc.fDynamic ? DYNAMIC_USAGE_PARAM : GR_GL_STATIC_DRAW;
121 if (fDesc.fSizeInBytes == srcSizeInBytes) {
130 GL_CALL(gpu, BufferData(fBufferType, (GrGLsizeiptr) fDesc.fSizeInBytes, NULL, usage));
162 // SkASSERT((0 == fDesc.fID) == (NULL != fCPUData));
163 SkASSERT(0 != fDesc.fID || !fDesc.fIsWrapped);