| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 // they will be freed before the last context is removed from the context gr
oup. | 1073 // they will be freed before the last context is removed from the context gr
oup. |
| 1074 m_boundArrayBuffer = nullptr; | 1074 m_boundArrayBuffer = nullptr; |
| 1075 m_defaultVertexArrayObject = nullptr; | 1075 m_defaultVertexArrayObject = nullptr; |
| 1076 m_boundVertexArrayObject = nullptr; | 1076 m_boundVertexArrayObject = nullptr; |
| 1077 m_vertexAttrib0Buffer = nullptr; | 1077 m_vertexAttrib0Buffer = nullptr; |
| 1078 m_currentProgram = nullptr; | 1078 m_currentProgram = nullptr; |
| 1079 m_framebufferBinding = nullptr; | 1079 m_framebufferBinding = nullptr; |
| 1080 m_renderbufferBinding = nullptr; | 1080 m_renderbufferBinding = nullptr; |
| 1081 m_valuebufferBinding = nullptr; | 1081 m_valuebufferBinding = nullptr; |
| 1082 | 1082 |
| 1083 // WebGLTexture shared objects will be detached and deleted |
| 1084 // m_contextGroup->removeContext(this), which will bring about deleteTexture
() calls. |
| 1085 // We null these out to avoid accessing those members in deleteTexture(). |
| 1083 for (size_t i = 0; i < m_textureUnits.size(); ++i) { | 1086 for (size_t i = 0; i < m_textureUnits.size(); ++i) { |
| 1084 m_textureUnits[i].m_texture2DBinding = nullptr; | 1087 m_textureUnits[i].m_texture2DBinding = nullptr; |
| 1085 m_textureUnits[i].m_textureCubeMapBinding = nullptr; | 1088 m_textureUnits[i].m_textureCubeMapBinding = nullptr; |
| 1086 m_textureUnits[i].m_texture3DBinding = nullptr; | 1089 m_textureUnits[i].m_texture3DBinding = nullptr; |
| 1087 m_textureUnits[i].m_texture2DArrayBinding = nullptr; | 1090 m_textureUnits[i].m_texture2DArrayBinding = nullptr; |
| 1088 } | 1091 } |
| 1089 | 1092 |
| 1090 m_blackTexture2D = nullptr; | 1093 m_blackTexture2D = nullptr; |
| 1091 m_blackTextureCubeMap = nullptr; | 1094 m_blackTextureCubeMap = nullptr; |
| 1092 | 1095 |
| (...skipping 5606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6699 | 6702 |
| 6700 return totalBytesPerPixel; | 6703 return totalBytesPerPixel; |
| 6701 } | 6704 } |
| 6702 | 6705 |
| 6703 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const | 6706 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const |
| 6704 { | 6707 { |
| 6705 return m_drawingBuffer.get(); | 6708 return m_drawingBuffer.get(); |
| 6706 } | 6709 } |
| 6707 | 6710 |
| 6708 } // namespace blink | 6711 } // namespace blink |
| OLD | NEW |