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