summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
author Peiyong Lin <lpy@google.com> 2018-10-25 09:48:33 -0700
committer Peiyong Lin <lpy@google.com> 2018-10-25 09:48:33 -0700
commit4bac91c102aa66fc0890038fc5079016558cb52c (patch)
treef50002d920dae5ceba961fe770ad30687e16c4e9 /services/surfaceflinger/SurfaceFlinger.cpp
parente6b2368bdb2d8e640d1d41a139d9530b5d68a650 (diff)
[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
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 4a96e8987c..53927fd787 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -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();