| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 void OESVertexArrayObject::deleteVertexArrayOES(ScriptState* scriptState, WebGLV
ertexArrayObjectOES* arrayObject) | 66 void OESVertexArrayObject::deleteVertexArrayOES(ScriptState* scriptState, WebGLV
ertexArrayObjectOES* arrayObject) |
| 67 { | 67 { |
| 68 WebGLExtensionScopedContext scoped(this); | 68 WebGLExtensionScopedContext scoped(this); |
| 69 if (!arrayObject || scoped.isLost()) | 69 if (!arrayObject || scoped.isLost()) |
| 70 return; | 70 return; |
| 71 | 71 |
| 72 if (!arrayObject->isDefaultObject() && arrayObject == scoped.context()->m_bo
undVertexArrayObject) | 72 if (!arrayObject->isDefaultObject() && arrayObject == scoped.context()->m_bo
undVertexArrayObject) |
| 73 scoped.context()->setBoundVertexArrayObject(scriptState, nullptr); | 73 scoped.context()->setBoundVertexArrayObject(scriptState, nullptr); |
| 74 | 74 |
| 75 arrayObject->deleteObject(scoped.context()->webContext(), scoped.context()->
contextGL()); | 75 arrayObject->deleteObject(scoped.context()->contextGL()); |
| 76 } | 76 } |
| 77 | 77 |
| 78 GLboolean OESVertexArrayObject::isVertexArrayOES(WebGLVertexArrayObjectOES* arra
yObject) | 78 GLboolean OESVertexArrayObject::isVertexArrayOES(WebGLVertexArrayObjectOES* arra
yObject) |
| 79 { | 79 { |
| 80 WebGLExtensionScopedContext scoped(this); | 80 WebGLExtensionScopedContext scoped(this); |
| 81 if (!arrayObject || scoped.isLost()) | 81 if (!arrayObject || scoped.isLost()) |
| 82 return 0; | 82 return 0; |
| 83 | 83 |
| 84 if (!arrayObject->hasEverBeenBound()) | 84 if (!arrayObject->hasEverBeenBound()) |
| 85 return 0; | 85 return 0; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 113 { | 113 { |
| 114 return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj
ect"); | 114 return context->extensionsUtil()->supportsExtension("GL_OES_vertex_array_obj
ect"); |
| 115 } | 115 } |
| 116 | 116 |
| 117 const char* OESVertexArrayObject::extensionName() | 117 const char* OESVertexArrayObject::extensionName() |
| 118 { | 118 { |
| 119 return "OES_vertex_array_object"; | 119 return "OES_vertex_array_object"; |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace blink | 122 } // namespace blink |
| OLD | NEW |