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

Commit 4bac91c1 authored by Peiyong Lin's avatar Peiyong Lin
Browse files

[SurfaceFlinger] Deprecate 1024 opcode.

In general we no longer want to use opcode inside the platform. This patch
deprecates 1024 opcode, all usages should now be switched to 1030 opcode.

BUG: 111505327
Test: Build, flash, boot and check Settings
Change-Id: I70b07a8c1eb71694950625f991def83072906c24
parent e6b2368b
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -4976,11 +4976,9 @@ status_t SurfaceFlinger::onTransact(uint32_t code, const Parcel& data, Parcel* r
                repaintEverything();
                return NO_ERROR;
            }
            // TODO(b/111505327): Find out whether the usage of 1024 can switch to 1030,
            // deprecate 1024 if they can.
            case 1024: { // Does device have wide color gamut display?
                reply->writeBool(hasWideColorDisplay);
                return NO_ERROR;
            // Deprecate, use 1030 to check whether the device is color managed.
            case 1024: {
                return NAME_NOT_FOUND;
            }
            case 1025: { // Set layer tracing
                n = data.readInt32();