openharmony_ci f17310daf7 !139 RM010、RM014和RM015
Merge pull request !139 from xvcheng1979101/master
2022-04-22 07:18:06 +00:00
2021-04-07 14:47:57 +08:00
2021-03-11 18:38:19 +08:00
2022-04-18 15:06:44 +08:00
2022-04-22 07:18:06 +00:00
2022-03-29 19:03:21 +08:00
2021-03-11 18:38:19 +08:00
2022-04-18 15:06:44 +08:00
2021-03-11 18:38:19 +08:00
2021-03-16 11:00:41 +08:00
2022-03-29 19:03:21 +08:00
2022-04-20 18:16:24 +08:00

Utils

Introduction

The Utils module defines the common data structure in the graphics subsystem and provides a lite OS adaptation layer, which includes the lock, thread, and file system.

Figure 1 Dependency between modules of the graphics subsystem

Directory Structure

/foundation/graphic/utils
├── frameworks      # Framework code
│   ├── hals        # Hardware adaptation layer
│   ├── linux       # Linux platform adaptation layer
│   ├── liteos      # LiteOS platform adaptation layer
│   └── windows     # Windows platform adaptation layer
├── interfaces      # APIs
│   ├── innerkits   # APIs between modules
│   │   └── hals    # APIs of the hardware adaptation layer
│   └── kits        # External APIs
└── test            # Unit testing

Compilation and Building

# Generate the libgraphic_utils.so file in the out directory of the product folder through GN compilation.
hb build lite_graphic_utils

Description

Usage

  • Utils is used in UI, surface, and WMS modules. For details, see the related source code.
  • The test folder provides unit testing for each utils API. Refer to it for the usage of utils.

Repositories Involved

Graphic subsystem

graphic_wms

graphic_surface

graphic_ui

Hals

Introduction

The Hals module adapts and encapsulates the functions related to the driver subsystem and platform, including FrameBuffer, graphics (GFX), and single instruction, multiple data (SIMD).

Figure 1 Dependency between modules of the graphics subsystem and that between graphics modules and the driver subsystem

Directory Structure

/foundation/graphic/utils
├── frameworks      # Framework code
│   ├── hals        # Hardware adaptation layer
│   ├── linux       # Linux platform adaptation layer
│   ├── liteos      # LiteOS platform adaptation layer
│   └── windows     # Windows platform adaptation layer
├── interfaces      # APIs
│   ├── innerkits   # APIs between modules
│   │   └── hals    # APIs of the hardware adaptation layer
│   └── kits        # External APIs
└── test            # Unit testing

Compilation and Building

# Generate the libgraphic_hals.so file in the out directory of the product folder through GN compilation.
hb build lite_graphic_utils

Description

Usage

  • Hals is used in UI, surface, and WMS modules. For details, see the related source code.

Repositories Involved

Graphic subsystem

graphic_wms

graphic_surface

graphic_ui

graphic_utils

S
Description
仓库已停用| 请使用新地址:https://gitee.com/openharmony/graphic_graphic_utils_liteGraphic fundamental components | 图形基础组件
Readme 1.3 MiB
Languages
C++ 98.6%
C 1.4%