зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1484463 - Remove GeckoAppShell.setScreenDepthOverride(). r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D3813 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
495dc554b1
Коммит
91e6e6d242
|
@ -1046,16 +1046,6 @@ public class GeckoAppShell
|
|||
return sScreenDepth;
|
||||
}
|
||||
|
||||
@WrapForJNI(calledFrom = "gecko")
|
||||
private static synchronized void setScreenDepthOverride(int aScreenDepth) {
|
||||
if (sScreenDepth != 0) {
|
||||
Log.e(LOGTAG, "Tried to override screen depth after it's already been set");
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
sScreenDepth = aScreenDepth;
|
||||
}
|
||||
|
||||
@WrapForJNI(calledFrom = "gecko")
|
||||
private static void performHapticFeedback(boolean aIsLongPress) {
|
||||
// Don't perform haptic feedback if a vibration is currently playing,
|
||||
|
|
|
@ -587,11 +587,6 @@ nsAppShell::Observe(nsISupports* aSubject,
|
|||
|
||||
} else if (!strcmp(aTopic, "profile-after-change")) {
|
||||
if (jni::IsAvailable()) {
|
||||
// See if we want to force 16-bit color before doing anything
|
||||
if (Preferences::GetBool("gfx.android.rgb16.force", false)) {
|
||||
java::GeckoAppShell::SetScreenDepthOverride(16);
|
||||
}
|
||||
|
||||
java::GeckoThread::SetState(
|
||||
java::GeckoThread::State::PROFILE_READY());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче