mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1097734 - use NS_INLINE_DECL_REFCOUNTING in WebGLContextLossHandler; r=smaug
This commit is contained in:
parent
4d4a616568
commit
c5545255d8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user