mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 875218 - Make GLContext inherit GenericRefCounted, to allow moz2d to have strong references to GLContexts r=mattwoodrow
This commit is contained in:
parent
a568ac2b45
commit
e153154b5d
@ -53,6 +53,7 @@ typedef char realGLboolean;
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/StandardInteger.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
#include "mozilla/GenericRefCounted.h"
|
||||
|
||||
namespace android {
|
||||
class GraphicBuffer;
|
||||
@ -84,9 +85,8 @@ typedef uintptr_t SharedTextureHandle;
|
||||
|
||||
class GLContext
|
||||
: public GLLibraryLoader
|
||||
, public GenericAtomicRefCounted
|
||||
{
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(GLContext)
|
||||
|
||||
protected:
|
||||
typedef class gfx::SharedSurface SharedSurface;
|
||||
typedef gfx::SharedSurfaceType SharedSurfaceType;
|
||||
|
Loading…
Reference in New Issue
Block a user