mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Use WeakPtr for extension parent pointer.
This commit is contained in:
parent
a10e2214ee
commit
08ccf18274
8 changed files with 55 additions and 33 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue