mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Merge remote-tracking branch 'origin/master' into custom
This commit is contained in:
commit
333a06698b
41 changed files with 1 additions and 1192 deletions
|
|
@ -1078,14 +1078,8 @@ WebGLContext::ClearBackbufferIfNeeded()
|
|||
void
|
||||
WebGLContext::LoseOldestWebGLContextIfLimitExceeded()
|
||||
{
|
||||
#ifdef MOZ_GFX_OPTIMIZE_MOBILE
|
||||
// some mobile devices can't have more than 8 GL contexts overall
|
||||
const size_t kMaxWebGLContextsPerPrincipal = 2;
|
||||
const size_t kMaxWebGLContexts = 4;
|
||||
#else
|
||||
const size_t kMaxWebGLContextsPerPrincipal = 16;
|
||||
const size_t kMaxWebGLContexts = 32;
|
||||
#endif
|
||||
MOZ_ASSERT(kMaxWebGLContextsPerPrincipal < kMaxWebGLContexts);
|
||||
|
||||
if (!NS_IsMainThread()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue