blob: 8fe09767815861c8df5bd865056a44b3879bd2ec [file] [log] [blame]
Peiyong Lin781d0bb2019-07-03 10:57:02 -07001/*
2 * Copyright 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.graphics.composer@2.4;
18
19import @2.1::Display;
20import @2.1::Error;
21import @2.3::IComposerClient;
22
23interface IComposerClient extends @2.3::IComposerClient {
24
25 /**
26 * Required capabilities which are supported by the display. The
27 * particular set of supported capabilities for a given display may be
28 * retrieved using getDisplayCapabilities.
29 */
30 enum DisplayCapability : uint32_t {
31 /**
32 * Indicates that the display supports protected contents.
33 * When returned, hardware composer must be able to accept client target
34 * with protected buffers.
35 */
36 PROTECTED_CONTENTS = 4,
37 };
38
39 /**
40 * Provides a list of supported capabilities (as described in the
41 * definition of DisplayCapability above). This list must not change after
42 * initialization.
43 *
44 * @return error is NONE upon success. Otherwise,
45 * BAD_DISPLAY when an invalid display handle was passed in.
46 * @return capabilities is a list of supported capabilities.
47 */
48 getDisplayCapabilities_2_4(Display display)
49 generates (Error error,
50 vec<DisplayCapability> capabilities);
51};