| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2011 Google Inc. All rights reserved. | 2  * Copyright (C) 2011 Google Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  * Redistribution and use in source and binary forms, with or without | 4  * Redistribution and use in source and binary forms, with or without | 
| 5  * modification, are permitted provided that the following conditions | 5  * modification, are permitted provided that the following conditions | 
| 6  * are met: | 6  * are met: | 
| 7  * 1. Redistributions of source code must retain the above copyright | 7  * 1. Redistributions of source code must retain the above copyright | 
| 8  *    notice, this list of conditions and the following disclaimer. | 8  *    notice, this list of conditions and the following disclaimer. | 
| 9  * 2. Redistributions in binary form must reproduce the above copyright | 9  * 2. Redistributions in binary form must reproduce the above copyright | 
| 10  *    notice, this list of conditions and the following disclaimer in the | 10  *    notice, this list of conditions and the following disclaimer in the | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
| 41 | 41 | 
| 42 OESVertexArrayObject::~OESVertexArrayObject() | 42 OESVertexArrayObject::~OESVertexArrayObject() | 
| 43 { | 43 { | 
| 44 } | 44 } | 
| 45 | 45 | 
| 46 WebGLExtensionName OESVertexArrayObject::name() const | 46 WebGLExtensionName OESVertexArrayObject::name() const | 
| 47 { | 47 { | 
| 48     return OESVertexArrayObjectName; | 48     return OESVertexArrayObjectName; | 
| 49 } | 49 } | 
| 50 | 50 | 
| 51 PassRefPtrWillBeRawPtr<OESVertexArrayObject> OESVertexArrayObject::create(WebGLR
     enderingContextBase* context) | 51 OESVertexArrayObject* OESVertexArrayObject::create(WebGLRenderingContextBase* co
     ntext) | 
| 52 { | 52 { | 
| 53     return adoptRefWillBeNoop(new OESVertexArrayObject(context)); | 53     return new OESVertexArrayObject(context); | 
| 54 } | 54 } | 
| 55 | 55 | 
| 56 PassRefPtrWillBeRawPtr<WebGLVertexArrayObjectOES> OESVertexArrayObject::createVe
     rtexArrayOES() | 56 WebGLVertexArrayObjectOES* OESVertexArrayObject::createVertexArrayOES() | 
| 57 { | 57 { | 
| 58     WebGLExtensionScopedContext scoped(this); | 58     WebGLExtensionScopedContext scoped(this); | 
| 59     if (scoped.isLost()) | 59     if (scoped.isLost()) | 
| 60         return nullptr; | 60         return nullptr; | 
| 61 | 61 | 
| 62     RefPtrWillBeRawPtr<WebGLVertexArrayObjectOES> o = WebGLVertexArrayObjectOES:
     :create(scoped.context(), WebGLVertexArrayObjectOES::VaoTypeUser); | 62     WebGLVertexArrayObjectOES* o = WebGLVertexArrayObjectOES::create(scoped.cont
     ext(), WebGLVertexArrayObjectOES::VaoTypeUser); | 
| 63     scoped.context()->addContextObject(o.get()); | 63     scoped.context()->addContextObject(o); | 
| 64     return o.release(); | 64     return o; | 
| 65 } | 65 } | 
| 66 | 66 | 
| 67 void OESVertexArrayObject::deleteVertexArrayOES(WebGLVertexArrayObjectOES* array
     Object) | 67 void OESVertexArrayObject::deleteVertexArrayOES(WebGLVertexArrayObjectOES* array
     Object) | 
| 68 { | 68 { | 
| 69     WebGLExtensionScopedContext scoped(this); | 69     WebGLExtensionScopedContext scoped(this); | 
| 70     if (!arrayObject || scoped.isLost()) | 70     if (!arrayObject || scoped.isLost()) | 
| 71         return; | 71         return; | 
| 72 | 72 | 
| 73     if (!arrayObject->isDefaultObject() && arrayObject == scoped.context()->m_bo
     undVertexArrayObject) | 73     if (!arrayObject->isDefaultObject() && arrayObject == scoped.context()->m_bo
     undVertexArrayObject) | 
| 74         scoped.context()->setBoundVertexArrayObject(nullptr); | 74         scoped.context()->setBoundVertexArrayObject(nullptr); | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 114 { | 114 { | 
| 115     return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj
     ect"); | 115     return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj
     ect"); | 
| 116 } | 116 } | 
| 117 | 117 | 
| 118 const char* OESVertexArrayObject::extensionName() | 118 const char* OESVertexArrayObject::extensionName() | 
| 119 { | 119 { | 
| 120     return "OES_vertex_array_object"; | 120     return "OES_vertex_array_object"; | 
| 121 } | 121 } | 
| 122 | 122 | 
| 123 } // namespace blink | 123 } // namespace blink | 
| OLD | NEW | 
|---|