| Index: Source/core/html/canvas/WebGLObject.cpp
|
| diff --git a/Source/core/html/canvas/WebGLObject.cpp b/Source/core/html/canvas/WebGLObject.cpp
|
| index 14dd8ba5ee8d78eeea2c29b7f2dfc08ece0c7a8f..c66a474e008423da9878e27f8c34a8023d20071b 100644
|
| --- a/Source/core/html/canvas/WebGLObject.cpp
|
| +++ b/Source/core/html/canvas/WebGLObject.cpp
|
| @@ -27,9 +27,11 @@
|
|
|
| #include "core/html/canvas/WebGLObject.h"
|
|
|
| +#include "core/html/canvas/WebGLRenderingContextBase.h"
|
| +
|
| namespace WebCore {
|
|
|
| -WebGLObject::WebGLObject(WebGLRenderingContextBase*)
|
| +WebGLObject::WebGLObject(WebGLRenderingContextBase* base)
|
| : m_object(0)
|
| , m_attachmentCount(0)
|
| , m_deleted(false)
|
| @@ -38,6 +40,10 @@ WebGLObject::WebGLObject(WebGLRenderingContextBase*)
|
|
|
| WebGLObject::~WebGLObject()
|
| {
|
| +#if ENABLE(OILPAN)
|
| + // Verify that platform objects have been explicitly deleted.
|
| + ASSERT(m_deleted);
|
| +#endif
|
| }
|
|
|
| void WebGLObject::setObject(Platform3DObject object)
|
| @@ -70,8 +76,7 @@ void WebGLObject::deleteObject(blink::WebGraphicsContext3D* context3d)
|
| void WebGLObject::detach()
|
| {
|
| m_attachmentCount = 0; // Make sure OpenGL resource is deleted.
|
| - }
|
| -
|
| +}
|
|
|
| void WebGLObject::onDetached(blink::WebGraphicsContext3D* context3d)
|
| {
|
|
|