Bug 875218 - Make GLContext inherit GenericRefCounted, to allow moz2d to have strong references to GLContexts r=mattwoodrow

This commit is contained in:
Benoit Jacob 2013-06-16 22:05:56 -04:00
parent 331ec8943f
commit 2b5bfc6902

View File

@ -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;