Go to file
Klaus_q 7505ee2f56 change default gravity mode into resize
Signed-off-by: Klaus_q <wangqi175@huawei.com>
Change-Id: I9666537690c073f2dbb75b010d5f099e55c61975
2022-07-13 09:07:07 +08:00
figures update graphic architecture in README_zh.md 2022-02-28 14:30:36 +08:00
frameworks !1522 【静态检查】修复有符号数和无符号数隐式转换的问题 2022-07-12 08:05:51 +00:00
interfaces Change code path for windowmanager 2022-07-09 20:30:20 +08:00
rosen change default gravity mode into resize 2022-07-13 09:07:07 +08:00
utils !1499 Revert "fix:change graphic_standard to graphic_graphic_2d" 2022-07-08 09:51:33 +00:00
.clang-format add .clang-format config, for auto code format 2022-03-31 10:28:00 +08:00
.gitattributes update OpenHarmony 2.0 Canary 2021-06-02 02:21:18 +08:00
BUILD.gn Revert "fix:change graphic_standard to graphic_graphic_2d" 2022-07-06 19:39:58 +08:00
bundle.json !1499 Revert "fix:change graphic_standard to graphic_graphic_2d" 2022-07-08 09:51:33 +00:00
default.scss add window type 2021-12-21 21:12:04 +08:00
flutter.gni Description:change dir graphic/graphic to graphic/graphic_2d 2022-05-19 14:59:57 +08:00
graphic_config.gni Revert "fix:change graphic_standard to graphic_graphic_2d" 2022-07-06 19:39:58 +08:00
graphic.cfg Modify the uid and gid of bootanimation process 2022-06-13 17:31:23 +08:00
graphic.rc !104 支持hdi gpu混合合成 2021-12-20 14:45:53 +08:00
hisysevent.yaml 区分NO_DRAW与JANK_FRAME_SKIP数据打点事件 2022-06-20 10:20:26 +08:00
LICENSE update OpenHarmony 2.0 Canary 2021-06-02 02:21:18 +08:00
OAT.xml update OAT.xml. 2022-05-05 12:08:27 +00:00
README_zh.md !1499 Revert "fix:change graphic_standard to graphic_graphic_2d" 2022-07-08 09:51:33 +00:00
README.md 【OpenHarmony开源贡献者计划2022】增加英文版README 2022-06-06 09:34:15 +00:00

graphic_graphic_2d

Introduction

Graphic subsystem provides graphical interface capabilities.

Its main structure is shown in the following figure:

Graphic subsystem architecture diagram

The layered description of the OpenHarmony graphics stack is as follows:

• Interface layer: Provides native API capabilities for graphics, including: WebGL, Native Drawing drawing capabilities, OpenGL instruction-level drawing capabilities support, etc.

• Framework layer: divided into five modules: Render Service, Drawing, Animation, Effect, Display and Memory Management.

Module Capability Description
Render Servicel Provides the rendering capabilities of the UI framework. Its core responsibility is to convert ArkUI's control description into drawing tree information, and perform optimal path rendering according to the corresponding rendering strategy. At the same time, it is responsible for the core underlying mechanism of UI sharing in multi-window smoothness and spatial state.
Drawing Provides a standardized interface within the graphics subsystem, and mainly completes basic functions such as 2D rendering, 3D rendering and rendering engine management.
Animation Provides related capabilities of the animation engine.
Effect Mainly completes the ability to process image effects, rendering effects and other effects, including: multi-effect series and parallel processing, adding rendering effects, control interaction effects and other related capabilities during layout.
Display and Memory Management This module is the main module for the decoupling of the graphics stack and hardware. It mainly defines the display and memory management capabilities of OpenHarmony. The defined southbound HDI interface requires different OEMs to complete the adaptation of the OpenHarmony graphics stack. match.

• Engine layer: includes two modules, 2D graphics library and 3D graphics engine. The 2D graphics library provides the underlying API for 2D graphics rendering, and supports the underlying capabilities of graphics rendering and text rendering. 3D graphics engine capabilities are still under construction.

content

foundataion/graphic/graphic_2d
├── figures                      # Markdown referenced image catalog
├── frameworks                   # framework code directory
│   ├── animation_server         # animationServer code
│   ├── bootanimation            # Boot animation directory
│   ├── dumper                   # graphic dumper code
│   ├── fence                    # fence code
│   ├── vsync                    # Vsync code
├── rosen                        # framework code directory
│   ├── build                    # build instructions
│   ├── doc                      # doc
│   ├── include                  # external header file code
│   ├── lib                      # lib
│   ├── modules                  # graphic Each module code of the subsystem
│   ├── samples                  # sample code
│   ├── test                     # develop test code
│   ├── tools                    # tool code
├── interfaces                   # graphical interface storage directory
│   ├── innerkits                # internal native interface storage directory
│   └── kits                     # js/napi external interface storage directory
└── utils                        # widget storage directory

Repositories Involved