mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
Issue #1751 -- Remove XP_MACOSX conditionals from /dom
This commit is contained in:
parent
434b3269fb
commit
d29e4f8306
71 changed files with 100 additions and 5342 deletions
|
|
@ -30,10 +30,6 @@
|
|||
#include "ScopedGLHelpers.h"
|
||||
#include "TexUnpackBlob.h"
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
#include "ForceDiscreteGPUHelperCGL.h"
|
||||
#endif
|
||||
|
||||
// Local
|
||||
#include "WebGLContextLossHandler.h"
|
||||
#include "WebGLContextUnchecked.h"
|
||||
|
|
@ -2015,15 +2011,6 @@ protected:
|
|||
JSObject* WebGLObjectAsJSObject(JSContext* cx, const WebGLObjectType*,
|
||||
ErrorResult& rv) const;
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
// see bug 713305. This RAII helper guarantees that we're on the discrete GPU, during its lifetime
|
||||
// Debouncing note: we don't want to switch GPUs too frequently, so try to not create and destroy
|
||||
// these objects at high frequency. Having WebGLContext's hold one such object seems fine,
|
||||
// because WebGLContext objects only go away during GC, which shouldn't happen too frequently.
|
||||
// If in the future GC becomes much more frequent, we may have to revisit then (maybe use a timer).
|
||||
ForceDiscreteGPUHelperCGL mForceDiscreteGPUHelper;
|
||||
#endif
|
||||
|
||||
public:
|
||||
// console logging helpers
|
||||
void GenerateWarning(const char* fmt, ...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue