| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 28 matching lines...) Expand all Loading... |
| 39 WebGLSharedObject::~WebGLSharedObject() | 39 WebGLSharedObject::~WebGLSharedObject() |
| 40 { | 40 { |
| 41 if (m_contextGroup) | 41 if (m_contextGroup) |
| 42 m_contextGroup->removeObject(this); | 42 m_contextGroup->removeObject(this); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void WebGLSharedObject::detachContextGroup() | 45 void WebGLSharedObject::detachContextGroup() |
| 46 { | 46 { |
| 47 detach(); | 47 detach(); |
| 48 if (m_contextGroup) { | 48 if (m_contextGroup) { |
| 49 deleteObject(nullptr); | 49 deleteObject(nullptr, nullptr); |
| 50 m_contextGroup->removeObject(this); | 50 m_contextGroup->removeObject(this); |
| 51 m_contextGroup = nullptr; | 51 m_contextGroup = nullptr; |
| 52 } | 52 } |
| 53 } | 53 } |
| 54 | 54 |
| 55 WebGraphicsContext3D* WebGLSharedObject::getAWebGraphicsContext3D() const | 55 WebGraphicsContext3D* WebGLSharedObject::getAWebGraphicsContext3D() const |
| 56 { | 56 { |
| 57 return m_contextGroup ? m_contextGroup->getAWebGraphicsContext3D() : nullptr
; | 57 return m_contextGroup ? m_contextGroup->getAWebGraphicsContext3D() : nullptr
; |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| OLD | NEW |