Files
Serdar Kocdemir 0a0ba2b54b Add new render control functions for display color transform
New rc functions will be used from the host compositor to set a display
color transform matrix is given. This feature is used when the matrix is
set explicitly on surface flinger, or when using accessibility color
features, such as color blind modes. New functionality is added into
generate-apigen-sources code generator code to handle matrix data type.

New functions
* rcGetDisplayColorTransform: Get the matrix for the display
* rcSetDisplayColorTransform: Set the matrix for the display

Bug: 420586022
Test: Set color accessibility options in emulator
Test: ./scripts/generate-apigen-sources.sh
Change-Id: I21fa4bb4b5bbc6038f464f68c4c63eb50e46411c
2025-07-25 22:20:02 +00:00

96 lines
3.8 KiB
C

// Copyright 2025 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expresso or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Generated Code - DO NOT EDIT !!
// generated by './scripts/generate-apigen-sources.sh'
#ifndef __GUARD_renderControl_opcodes_h_
#define __GUARD_renderControl_opcodes_h_
#define OP_rcGetRendererVersion 10000
#define OP_rcGetEGLVersion 10001
#define OP_rcQueryEGLString 10002
#define OP_rcGetGLString 10003
#define OP_rcGetNumConfigs 10004
#define OP_rcGetConfigs 10005
#define OP_rcChooseConfig 10006
#define OP_rcGetFBParam 10007
#define OP_rcCreateContext 10008
#define OP_rcDestroyContext 10009
#define OP_rcCreateWindowSurface 10010
#define OP_rcDestroyWindowSurface 10011
#define OP_rcCreateColorBuffer 10012
#define OP_rcOpenColorBuffer 10013
#define OP_rcCloseColorBuffer 10014
#define OP_rcSetWindowColorBuffer 10015
#define OP_rcFlushWindowColorBuffer 10016
#define OP_rcMakeCurrent 10017
#define OP_rcFBPost 10018
#define OP_rcFBSetSwapInterval 10019
#define OP_rcBindTexture 10020
#define OP_rcBindRenderbuffer 10021
#define OP_rcColorBufferCacheFlush 10022
#define OP_rcReadColorBuffer 10023
#define OP_rcUpdateColorBuffer 10024
#define OP_rcOpenColorBuffer2 10025
#define OP_rcCreateClientImage 10026
#define OP_rcDestroyClientImage 10027
#define OP_rcSelectChecksumHelper 10028
#define OP_rcCreateSyncKHR 10029
#define OP_rcClientWaitSyncKHR 10030
#define OP_rcFlushWindowColorBufferAsync 10031
#define OP_rcDestroySyncKHR 10032
#define OP_rcSetPuid 10033
#define OP_rcUpdateColorBufferDMA 10034
#define OP_rcCreateColorBufferDMA 10035
#define OP_rcWaitSyncKHR 10036
#define OP_rcCompose 10037
#define OP_rcCreateDisplay 10038
#define OP_rcDestroyDisplay 10039
#define OP_rcSetDisplayColorBuffer 10040
#define OP_rcGetDisplayColorBuffer 10041
#define OP_rcGetColorBufferDisplay 10042
#define OP_rcGetDisplayPose 10043
#define OP_rcSetDisplayPose 10044
#define OP_rcSetColorBufferVulkanMode 10045
#define OP_rcReadColorBufferYUV 10046
#define OP_rcIsSyncSignaled 10047
#define OP_rcCreateColorBufferWithHandle 10048
#define OP_rcCreateBuffer 10049
#define OP_rcCloseBuffer 10050
#define OP_rcSetColorBufferVulkanMode2 10051
#define OP_rcMapGpaToBufferHandle 10052
#define OP_rcCreateBuffer2 10053
#define OP_rcMapGpaToBufferHandle2 10054
#define OP_rcFlushWindowColorBufferAsyncWithFrameNumber 10055
#define OP_rcSetTracingForPuid 10056
#define OP_rcMakeCurrentAsync 10057
#define OP_rcComposeAsync 10058
#define OP_rcDestroySyncKHRAsync 10059
#define OP_rcComposeWithoutPost 10060
#define OP_rcComposeAsyncWithoutPost 10061
#define OP_rcCreateDisplayById 10062
#define OP_rcSetDisplayPoseDpi 10063
#define OP_rcReadColorBufferDMA 10064
#define OP_rcGetFBDisplayConfigsCount 10065
#define OP_rcGetFBDisplayConfigsParam 10066
#define OP_rcGetFBDisplayActiveConfig 10067
#define OP_rcSetProcessMetadata 10068
#define OP_rcGetHostExtensionsString 10069
#define OP_rcGetDisplayColorTransform 10070
#define OP_rcSetDisplayColorTransform 10071
#define OP_last 10072
#endif