Bug 1097734 - use NS_INLINE_DECL_REFCOUNTING in WebGLContextLossHandler; r=smaug

This commit is contained in:
Nathan Froyd 2014-11-12 11:06:50 -05:00
Родитель ff32e827a2
Коммит 7d53346b6b
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -7,9 +7,9 @@
#define WEBGL_CONTEXT_LOSS_HANDLER_H_
#include "mozilla/DebugOnly.h"
#include "mozilla/RefPtr.h"
#include "mozilla/WeakPtr.h"
#include "nsCOMPtr.h"
#include "nsISupportsImpl.h"
class nsIThread;
class nsITimer;
@ -18,7 +18,6 @@ namespace mozilla {
class WebGLContext;
class WebGLContextLossHandler
: public RefCounted<WebGLContextLossHandler>
{
WeakPtr<WebGLContext> mWeakWebGL;
nsCOMPtr<nsITimer> mTimer;
@ -28,15 +27,16 @@ class WebGLContextLossHandler
DebugOnly<nsIThread*> mThread;
public:
MOZ_DECLARE_REFCOUNTED_TYPENAME(WebGLContextLossHandler)
NS_INLINE_DECL_REFCOUNTING(WebGLContextLossHandler)
explicit WebGLContextLossHandler(WebGLContext* aWebgl);
~WebGLContextLossHandler();
void RunTimer();
void DisableTimer();
protected:
~WebGLContextLossHandler();
void StartTimer(unsigned long delayMS);
static void StaticTimerCallback(nsITimer*, void* tempRefForTimer);
void TimerCallback();