| 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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 destroyContext(); | 1148 destroyContext(); |
| 1149 | 1149 |
| 1150 willDestroyContext(this); | 1150 willDestroyContext(this); |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 void WebGLRenderingContextBase::destroyContext() | 1153 void WebGLRenderingContextBase::destroyContext() |
| 1154 { | 1154 { |
| 1155 if (!drawingBuffer()) | 1155 if (!drawingBuffer()) |
| 1156 return; | 1156 return; |
| 1157 | 1157 |
| 1158 m_extensionsUtil.clear(); | 1158 m_extensionsUtil.reset(); |
| 1159 | 1159 |
| 1160 drawingBuffer()->contextProvider()->setLostContextCallback(WebClosure()); | 1160 drawingBuffer()->contextProvider()->setLostContextCallback(WebClosure()); |
| 1161 drawingBuffer()->contextProvider()->setErrorMessageCallback(WebFunction<void
(const char*, int32_t)>()); | 1161 drawingBuffer()->contextProvider()->setErrorMessageCallback(WebFunction<void
(const char*, int32_t)>()); |
| 1162 | 1162 |
| 1163 ASSERT(drawingBuffer()); | 1163 ASSERT(drawingBuffer()); |
| 1164 m_drawingBuffer->beginDestruction(); | 1164 m_drawingBuffer->beginDestruction(); |
| 1165 m_drawingBuffer.clear(); | 1165 m_drawingBuffer.clear(); |
| 1166 } | 1166 } |
| 1167 | 1167 |
| 1168 void WebGLRenderingContextBase::markContextChanged(ContentChangeType changeType) | 1168 void WebGLRenderingContextBase::markContextChanged(ContentChangeType changeType) |
| (...skipping 5225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6394 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); | 6394 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); |
| 6395 } | 6395 } |
| 6396 | 6396 |
| 6397 void WebGLRenderingContextBase::restoreUnpackParameters() | 6397 void WebGLRenderingContextBase::restoreUnpackParameters() |
| 6398 { | 6398 { |
| 6399 if (m_unpackAlignment != 1) | 6399 if (m_unpackAlignment != 1) |
| 6400 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); | 6400 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); |
| 6401 } | 6401 } |
| 6402 | 6402 |
| 6403 } // namespace blink | 6403 } // namespace blink |
| OLD | NEW |