display: Add extension SET_LAYER_TYPE in QtiCommand

Support extension QtiCommand in IQtiComposerClient to set layer
type. Change supports game layer hint in IQtiComposerClient.

Change-Id: I4539d98f5ad5421db6b3b10a72e38ef27efc153d
This commit is contained in:
Xu Yang
2019-09-05 10:50:50 +08:00
committed by Gerrit - the friendly Code Review server
parent f5d86d2a67
commit 5de3f0d64d
2 changed files with 22 additions and 1 deletions

View File

@@ -33,5 +33,26 @@ import android.hardware.graphics.composer@2.3::IComposerClient;
interface IQtiComposerClient extends IComposerClient {
enum LayerType : uint32_t {
UNKNOWN = 0,
APP = 1,
GAME = 2,
BROWSER = 3,
};
/**
* SET_LAYER_TYPE has this pseudo prototype
* setLayerType(uint32_t type);
*
* param type is the layer type.
* 0 - Unknown
* 1 - APP
* 2 - Game
* 3 - Browser
*/
enum Command : @2.3::IComposerClient.Command {
SET_LAYER_TYPE = 0x800 << @2.3::IComposerClient.Command:OPCODE_SHIFT,
};
};