1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef GRAPHIC_LITE_HI_FBDEV_H
17 #define GRAPHIC_LITE_HI_FBDEV_H
18 
19 #include "lite_wm_type.h"
20 
21 namespace OHOS {
22 enum LayerRotateType {
23     LAYER_ROTATE_NONE = 0,        /**< No rotation */
24     LAYER_ROTATE_90,              /**< Rotation by 90 degrees */
25     LAYER_ROTATE_180,             /**< Rotation by 180 degrees */
26     LAYER_ROTATE_270,             /**< Rotation by 270 degrees */
27     LAYER_ROTATE_BUTT             /**< Invalid operation */
28 };
29 
30 /**
31  * @brief Get dev surface data.
32  */
33 LiteSurfaceData* GetDevSurfaceData();
34 
35 /**
36  * @brief Get layer rotate type.
37  */
38 LayerRotateType GetLayerRotateType();
39 
40 /**
41  * @brief Initialize fbdev.
42  */
43 void HiFbdevInit(void);
44 
45 /**
46  * @brief Close fbdev.
47  */
48 void HiFbdevClose();
49 
50 /**
51  * @brief flush
52  */
53 void LcdFlush();
54 } // namespace OHOS
55 #endif // GRAPHIC_LITE_HI_FBDEV_H
56