mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 903466 - eliminate static constructors in widget/android/; r=blassey
This commit is contained in:
parent
9ebfa27137
commit
1199998558
@ -47,7 +47,7 @@ using namespace mozilla;
|
||||
|
||||
NS_IMPL_ISUPPORTS0(nsFilePickerCallback)
|
||||
|
||||
nsRefPtr<AndroidBridge> AndroidBridge::sBridge = nullptr;
|
||||
StaticRefPtr<AndroidBridge> AndroidBridge::sBridge;
|
||||
static unsigned sJavaEnvThreadIndex = 0;
|
||||
static void JavaThreadDetachFunc(void *arg);
|
||||
|
||||
@ -1431,7 +1431,7 @@ namespace mozilla {
|
||||
nsCOMPtr<nsIThread> mMainThread;
|
||||
|
||||
};
|
||||
nsCOMPtr<TracerRunnable> sTracerRunnable;
|
||||
StaticRefPtr<TracerRunnable> sTracerRunnable;
|
||||
|
||||
bool InitWidgetTracing() {
|
||||
if (!sTracerRunnable)
|
||||
|
@ -421,7 +421,7 @@ public:
|
||||
const int32_t aPort,
|
||||
nsACString & aResult);
|
||||
protected:
|
||||
static nsRefPtr<AndroidBridge> sBridge;
|
||||
static StaticRefPtr<AndroidBridge> sBridge;
|
||||
nsTArray<nsCOMPtr<nsIMobileMessageCallback> > mSmsRequests;
|
||||
|
||||
// the global JavaVM
|
||||
|
@ -89,7 +89,21 @@ static bool gTryRealloc = true;
|
||||
static class GLFunctions
|
||||
{
|
||||
public:
|
||||
GLFunctions() : mInitialized(false)
|
||||
MOZ_CONSTEXPR GLFunctions() : mInitialized(false),
|
||||
fGetDisplay(nullptr),
|
||||
fEGLGetError(nullptr),
|
||||
fCreateImageKHR(nullptr),
|
||||
fDestroyImageKHR(nullptr),
|
||||
fImageTargetTexture2DOES(nullptr),
|
||||
fBindTexture(nullptr),
|
||||
fGLGetError(nullptr),
|
||||
fGraphicBufferCtor(nullptr),
|
||||
fGraphicBufferDtor(nullptr),
|
||||
fGraphicBufferLock(nullptr),
|
||||
fGraphicBufferLockRect(nullptr),
|
||||
fGraphicBufferUnlock(nullptr),
|
||||
fGraphicBufferGetNativeBuffer(nullptr),
|
||||
fGraphicBufferReallocate(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user