Use WeakPtr for extension parent pointer.

This commit is contained in:
wolfbeast 2019-07-20 18:08:16 +02:00 committed by Roy Tam
commit 08ccf18274
8 changed files with 55 additions and 33 deletions

View file

@ -6,8 +6,8 @@
#ifndef WEBGLOBJECTMODEL_H_
#define WEBGLOBJECTMODEL_H_
#include "mozilla/WeakPtr.h"
#include "nsCycleCollectionNoteChild.h"
#include "WebGLTypes.h"
namespace mozilla {
@ -24,7 +24,7 @@ class WebGLContext;
class WebGLContextBoundObject
{
public:
WebGLContext* const mContext;
const WeakPtr<WebGLContext> mContext;
private:
const uint32_t mContextGeneration;