Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd58e797 authored by John Reck's avatar John Reck
Browse files

Revert "Force-enable hardware acceleration for apps"

This reverts commit 2a090110.

Change-Id: I47c58b7251411432bd6a3eeb6fe567385b1c084f
parent 2a090110
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -678,13 +678,13 @@ public final class ViewRootImpl implements ViewParent,
        mAttachInfo.mHardwareAccelerationRequested = false;

        // Don't enable hardware acceleration when the application is in compatibility mode
        if (false && mTranslator != null) return;
        if (mTranslator != null) return;

        // Try to enable hardware acceleration if requested
        final boolean hardwareAccelerated =
                (attrs.flags & WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0;

        if (true || hardwareAccelerated) {
        if (hardwareAccelerated) {
            if (!HardwareRenderer.isAvailable()) {
                return;
            }