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:
Randall Barker 2018-08-20 19:11:09 +00:00
Родитель 495dc554b1
Коммит 91e6e6d242
2 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -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());