mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
Remove MOZ_B2G leftovers and some dead B2G-only components.
This commit is contained in:
parent
75d98fd33e
commit
719ac1bc38
91 changed files with 28 additions and 5017 deletions
|
|
@ -656,32 +656,12 @@ public:
|
|||
static void AfterGLCall(const char* glFunction);
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_B2G
|
||||
EGLContext CachedCurrentContext() {
|
||||
return sCurrentContext.get();
|
||||
}
|
||||
void UnsetCachedCurrentContext() {
|
||||
sCurrentContext.set(nullptr);
|
||||
}
|
||||
void SetCachedCurrentContext(EGLContext aCtx) {
|
||||
sCurrentContext.set(aCtx);
|
||||
}
|
||||
bool CachedCurrentContextMatches() {
|
||||
return sCurrentContext.get() == fGetCurrentContext();
|
||||
}
|
||||
|
||||
private:
|
||||
static MOZ_THREAD_LOCAL(EGLContext) sCurrentContext;
|
||||
public:
|
||||
|
||||
#else
|
||||
EGLContext CachedCurrentContext() {
|
||||
return nullptr;
|
||||
}
|
||||
void UnsetCachedCurrentContext() {}
|
||||
void SetCachedCurrentContext(EGLContext aCtx) { }
|
||||
bool CachedCurrentContextMatches() { return true; }
|
||||
#endif
|
||||
|
||||
private:
|
||||
bool mInitialized;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue