зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1153848 - Add pref to disable SurfaceTexture attach/detach. r=snorp
This commit is contained in:
Родитель
a4bef7f27a
Коммит
bd9ca6bb1d
|
@ -17,6 +17,7 @@
|
|||
#include "GeneratedJNIWrappers.h"
|
||||
#include "SurfaceTexture.h"
|
||||
#include "GLContext.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::jni;
|
||||
|
@ -131,9 +132,12 @@ AndroidSurfaceTexture::UpdateCanDetach()
|
|||
// The API for attach/detach only exists on 16+, and PowerVR has some sort of
|
||||
// fencing issue. Additionally, attach/detach seems to be busted on at least some
|
||||
// Mali adapters (400MP2 for sure, bug 1131793)
|
||||
bool canDetach = Preferences::GetBool("gfx.SurfaceTexture.detach.enabled", true);
|
||||
|
||||
mCanDetach = AndroidBridge::Bridge()->GetAPIVersion() >= 16 &&
|
||||
(!mAttachedContext || mAttachedContext->Vendor() != GLVendor::Imagination) &&
|
||||
(!mAttachedContext || mAttachedContext->Vendor() != GLVendor::ARM /* Mali */);
|
||||
(!mAttachedContext || mAttachedContext->Vendor() != GLVendor::ARM /* Mali */) &&
|
||||
canDetach;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -337,6 +337,9 @@ pref("gfx.displayport.strategy_pb.threshold", -1); // velocity threshold in inch
|
|||
// Allow 24-bit colour when the hardware supports it
|
||||
pref("gfx.android.rgb16.force", false);
|
||||
|
||||
// Allow GLContexts to be attached/detached from SurfaceTextures
|
||||
pref("gfx.SurfaceTexture.detach.enabled", true);
|
||||
|
||||
// don't allow JS to move and resize existing windows
|
||||
pref("dom.disable_window_move_resize", true);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче