void WebGLVertexArrayObjectOES::deleteObjectImpl(blink::WebGraphicsContext3D* context3d, Platform3DObject object) { switch (m_type) { case VaoTypeDefault: break; default: context3d->deleteVertexArrayOES(object); break; } #if ENABLE(OILPAN) // These m_boundElementArrayBuffer and m_vertexAttribState heap // objects must not be accessed during destruction in the oilpan // build. They could have been already finalized. The finalizers // of these objects (and their elements) will themselves handle // detachment. if (!m_destructionInProgress) dispatchDetached(context3d); #else dispatchDetached(context3d); #endif }
void WebGLVertexArrayObjectBase::deleteObjectImpl(WebGraphicsContext3D* context3d) { switch (m_type) { case VaoTypeDefault: break; default: context3d->deleteVertexArrayOES(m_object); m_object = 0; break; } // Member<> objects must not be accessed during the destruction, // since they could have been already finalized. // The finalizers of these objects will handle their detachment // by themselves. if (!m_destructionInProgress) dispatchDetached(context3d); }