• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ArkGraphics2D Changelog
2
3## c1.ArkGraphics2D.1 OH_Drawing_GpuContextCreateFromGL Deprecated
4
5**Access Level**
6
7Public API
8
9**Reason for Change**
10
11The specialized API **OH_Drawing_GpuContextCreateFromGL**, which is tightly coupled with the GPU backend, has been deprecated. Instead, use the new interface **OH_DrawingGpuContextCreate**, which abstracts away the GPU backend.
12
13**Impact of the Change**
14
15The **OH_Drawing_GpuContextCreateFromGL** API is no longer maintained.
16
17You are advised to use **OH_Drawing_GpuContextCreate** instead.
18
19**Start API Level**
20
2112
22
23**Change Since**
24
25OpenHarmony SDK 5.1.0.59
26
27**Deprecated APIs/Components**
28
29The **OH_Drawing_GpuContextCreateFromGL** API and the **OH_Drawing_GpuContextOptions** struct are deprecated. You are advised to use **OH_Drawing_GpuContextCreate** instead.
30
31**Adaptation Guide**
32
33Replace **OH_Drawing_GpuContextCreateFromGL** with **OH_Drawing_GpuContextCreate** in your code.
34