CN116700850A - Display method and electronic device - Google Patents
Display method and electronic device Download PDFInfo
- Publication number
- CN116700850A CN116700850A CN202210192687.8A CN202210192687A CN116700850A CN 116700850 A CN116700850 A CN 116700850A CN 202210192687 A CN202210192687 A CN 202210192687A CN 116700850 A CN116700850 A CN 116700850A
- Authority
- CN
- China
- Prior art keywords
- layer
- display
- gui
- electronic device
- screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本申请提供一种显示方法及电子设备,能够减少电子设备执行不必要的操作所带来的性能损失。方法应用于具有至少两个显示屏的电子设备,该方法包括:电子设备根据图像数据生成第一图层,然后根据第一图层的布局信息以及至少两个显示屏在预设坐标系中对应的显示区域,从至少两个显示屏中确定目标显示屏,其中,第一图层的布局信息指示了第一图层在预设坐标系中所处的显示区域。电子设备根据至少一个第二图层合成第一图形用户界面GUI;其中,至少一个第二图层包括第一图层;或者,至少一个第二图层包括第一图层以及目标显示屏已显示的第二GUI对应的至少一个图层。电子设备控制目标显示屏显示第一GUI。
The present application provides a display method and an electronic device, which can reduce performance loss caused by unnecessary operations performed by the electronic device. The method is applied to an electronic device with at least two display screens, and the method includes: the electronic device generates a first layer according to image data, and then corresponds to the layout information of the first layer and at least two display screens in a preset coordinate system The target display area is determined from at least two display screens, wherein the layout information of the first layer indicates the display area where the first layer is located in the preset coordinate system. The electronic device synthesizes the first graphical user interface GUI according to at least one second layer; wherein, at least one second layer includes the first layer; or, at least one second layer includes the first layer and the target display screen has displayed at least one layer corresponding to the second GUI. The electronic device controls the target display screen to display the first GUI.
Description
技术领域technical field
本申请涉及电子设备技术领域,尤其涉及一种显示方法及电子设备。The present application relates to the technical field of electronic equipment, in particular to a display method and electronic equipment.
背景技术Background technique
目前,随着人机交互的发展,单屏显示已无法满足用户的需求,出现了越来越多支持双屏显示的电子设备。以手机为例,图1示出了支持双屏显示的手机的一个图形用户界面(graphical user interface,GUI)的示意图。通常,手机上显示的一个GUI是由手机经过一系列的图形绘制流程得到的图形。对于一个GUI来讲,其可能包括一个或者多个图层,电子设备可以分别绘制每个图层,然后将其合成一个GUI。At present, with the development of human-computer interaction, single-screen display can no longer meet the needs of users, and there are more and more electronic devices that support dual-screen display. Taking a mobile phone as an example, FIG. 1 shows a schematic diagram of a graphical user interface (graphical user interface, GUI) of a mobile phone supporting dual-screen display. Usually, a GUI displayed on the mobile phone is a graphic obtained by the mobile phone through a series of graphics drawing processes. For a GUI, it may include one or more layers, and the electronic device can draw each layer separately, and then synthesize them into a GUI.
为提高渲染的帧速率,电子设备往往采用多个缓冲区轮转的机制。以双缓冲区为例,用于输出当前显示于屏幕的GUI的缓冲区称为前台缓冲区(front buffer),用于后台合成下一个GUI的缓冲区称为后台缓冲区(back buffer),电子设备通过切换front buffer与back buffer的方式,完成屏幕的刷新,也即完成下一个GUI的显示。In order to improve the frame rate of rendering, electronic devices often adopt a mechanism of multiple buffer rotations. Taking the double buffer as an example, the buffer used to output the GUI currently displayed on the screen is called the front buffer (front buffer), and the buffer used to synthesize the next GUI in the background is called the back buffer (back buffer). The device completes the refresh of the screen by switching the front buffer and the back buffer, that is, completes the display of the next GUI.
在现有方案中,对于支持双屏显示的电子设备来讲,电子设备在确定需要更新GUI时,针对两个显示屏,电子设备都会执行根据显示屏上待显示的图像数据绘制图层,然后将绘制的图层合成GUI,将该GUI输出至显示屏显示这一过程。然而,该过程会给电子设备的性能带来损失。In the existing solution, for an electronic device that supports dual-screen display, when the electronic device determines that the GUI needs to be updated, for both display screens, the electronic device will execute drawing layers according to the image data to be displayed on the display screens, and then The drawn layers are synthesized into a GUI, and the GUI is output to the display screen for display. However, this process brings about a loss in the performance of the electronic device.
发明内容Contents of the invention
本申请提供一种显示方法及电子设备,能够减少电子设备执行不必要的操作所带来的性能损失。The present application provides a display method and an electronic device, which can reduce performance loss caused by unnecessary operations performed by the electronic device.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:
第一方面,本申请提供一种应用于电子设备的显示方法,电子设备包括至少两个显示屏,方法包括:电子设备根据图像数据生成第一图层;电子设备根据第一图层的布局信息以及至少两个显示屏在预设坐标系中对应的显示区域,从至少两个显示屏中确定目标显示屏,其中,第一图层的布局信息指示了第一图层在预设坐标系中所处的显示区域;电子设备根据至少一个第二图层合成第一图形用户界面GUI;其中,至少一个第二图层包括第一图层;或者,至少一个第二图层包括第一图层以及目标显示屏已显示的第二GUI对应的至少一个图层;电子设备控制目标显示屏显示第一GUI。In a first aspect, the present application provides a display method applied to an electronic device, the electronic device includes at least two display screens, and the method includes: the electronic device generates a first layer according to image data; the electronic device generates a first layer according to the layout information of the first layer and the corresponding display areas of the at least two display screens in the preset coordinate system, determining the target display screen from the at least two display screens, wherein the layout information of the first layer indicates that the first layer is in the preset coordinate system The display area where it is located; the electronic device synthesizes a first graphical user interface GUI according to at least one second layer; wherein, at least one second layer includes the first layer; or, at least one second layer includes the first layer and at least one layer corresponding to the second GUI displayed on the target display screen; the electronic device controls the target display screen to display the first GUI.
基于上述技术方案,电子设备根据图像数据生成第一图层之后,先根据第一图层的布局信息以及显示屏在预设坐标系中对应的显示区域确定目标显示屏。可以理解,目标显示屏是需要更新GUI的显示屏。然后根据至少一个第二图层合成第一GUI。可以理解,至少一个第二图层为目标显示屏上待显示的GUI对应的图层。即,电子设备只会针对需要更新GUI的显示屏,执行将对应的图层合成GUI的操作。最后控制目标显示屏显示第一GUI,可以理解,该步骤需要通过电子设备执行屏幕刷新操作实现。换言之,电子设备只有确定显示屏上的GUI需要更新的情况下,才会对该显示屏待显示的图层执行成操作,并通过屏幕刷新操作将合成后的GUI输出至显示屏显示。对于显示屏上的GUI不需要更新的情况下,不会对该显示屏对应的图层执行合成操作以及屏幕刷新操作,由此,可以减少电子设备执行不必要的合成操作以及刷新操作所带来的性能损失。Based on the above technical solution, after the electronic device generates the first layer according to the image data, it first determines the target display screen according to the layout information of the first layer and the corresponding display area of the display screen in the preset coordinate system. It can be understood that the target display screen is the display screen that needs to update the GUI. The first GUI is then composited from at least one second layer. It can be understood that at least one second layer is a layer corresponding to the GUI to be displayed on the target display screen. That is, the electronic device only executes the operation of synthesizing the corresponding layers into the GUI for the display screen that needs to update the GUI. Finally, the target display screen is controlled to display the first GUI. It can be understood that this step needs to be implemented by the electronic device performing a screen refresh operation. In other words, only when the electronic device determines that the GUI on the display screen needs to be updated, it will perform an operation on the layer to be displayed on the display screen, and output the synthesized GUI to the display screen for display through a screen refresh operation. When the GUI on the display screen does not need to be updated, the composition operation and screen refresh operation will not be performed on the layer corresponding to the display screen, thereby reducing the unnecessary synthesis operation and refresh operation of the electronic device. performance loss.
一种可能的设计中,电子设备根据第一图层的布局信息以及至少两个显示屏在预设坐标系中对应的显示区域,从至少两个显示屏中确定目标显示屏,包括:电子设备将至少两个显示屏中,在预设坐标系中对应的显示区域与第一图层在预设坐标系中的显示区域存在重叠区域的至少一个显示屏确定为目标显示屏。In a possible design, the electronic device determines the target display screen from at least two display screens according to the layout information of the first layer and the corresponding display areas of the at least two display screens in the preset coordinate system, including: the electronic device Among the at least two display screens, at least one display screen whose corresponding display area in the preset coordinate system overlaps with the display area of the first layer in the preset coordinate system is determined as the target display screen.
基于该设计,电子设备确定显示屏在预设坐标系中对应的显示区域,与第一图层在预设坐标系中的显示区域存在重叠区域,则可以判定,第一图层需要显示在该显示屏上,由此,电子设备确定该显示屏的GUI需要更新,则开始对该显示屏执行对应的合成操作以及刷新操作。Based on this design, the electronic device determines that the display area corresponding to the display screen in the preset coordinate system overlaps with the display area of the first layer in the preset coordinate system, so it can be determined that the first layer needs to be displayed in this On the display screen, the electronic device determines that the GUI of the display screen needs to be updated, and then starts to perform the corresponding composition operation and refresh operation on the display screen.
一种可能的设计中,图像数据为未显示在至少两个显示屏上的图层的数据;电子设备根据图像数据生成第一图层,包括:电子设备根据图像数据绘制第一图层。In a possible design, the image data is data of a layer not displayed on at least two display screens; the electronic device generating the first layer according to the image data includes: the electronic device drawing the first layer according to the image data.
一种可能的设计中,图像数据为至少两个显示屏上已显示的第三图层的数据;电子设备根据图像数据生成第一图层,包括:电子设备获取第三图层在至少两个显示屏上的显示位置的变化数据;电子设备根据变化数据,调整图像数据的显示位置,得到第一图层。In a possible design, the image data is the data of the third layer displayed on at least two display screens; the electronic device generates the first layer according to the image data, including: the electronic device acquires the third layer in at least two The change data of the display position on the display screen; the electronic device adjusts the display position of the image data according to the change data to obtain the first layer.
一种可能的设计中,在电子设备根据至少一个第二图层合成第一GUI之前,方法还包括:电子设备通过目标显示屏显示第二GUI;第二GUI对应的全部图层与第一GUI对应的全部图层不同,至少一个第二图层包括第一图层。In a possible design, before the electronic device synthesizes the first GUI according to at least one second layer, the method further includes: the electronic device displays the second GUI through the target display screen; all layers corresponding to the second GUI are combined with the first GUI All corresponding layers are different, at least one second layer includes the first layer.
一种可能的设计中,在电子设备根据至少一个第二图层合成第一GUI之前,方法还包括:电子设备通过目标显示屏显示第二GUI;第二GUI对应的至少一个图层与第一GUI对应的部分图层相同,至少一个第二图层包括第一图层以及第二GUI对应的至少一个图层。In a possible design, before the electronic device synthesizes the first GUI according to at least one second layer, the method further includes: the electronic device displays the second GUI through the target display screen; the at least one layer corresponding to the second GUI is the same as the first GUI Part of the layers corresponding to the GUI are the same, and at least one second layer includes the first layer and at least one layer corresponding to the second GUI.
一种可能的设计中,在电子设备根据至少一个第二图层合成第一GUI之后,方法还包括:电子设备将第一GUI缓存至与目标显示屏对应的后台缓冲区。In a possible design, after the electronic device synthesizes the first GUI according to the at least one second layer, the method further includes: the electronic device caches the first GUI in a back buffer corresponding to the target display screen.
一种可能的设计中,电子设备控制目标显示屏显示第一GUI,包括:电子设备将目标显示屏对应的后台缓冲区切换成目标显示屏对应的前台缓冲区;电子设备将目标显示屏对应的前台缓冲区中的第一GUI输出至目标显示屏显示。In a possible design, the electronic device controls the target display screen to display the first GUI, including: the electronic device switches the back buffer corresponding to the target display screen to the front buffer corresponding to the target display screen; The first GUI in the front buffer is output to the target display screen for display.
第二方面,本申请提供一种电子设备,包括第一处理器、第二处理器和至少两个显示屏,第二处理器、至少两个显示屏与第一处理器耦合;第一处理器或者第二处理器,用于根据图像数据生成第一图层;第一处理器,用于根据第一图层的布局信息以及至少两个显示屏在预设坐标系中对应的显示区域,从至少两个显示屏中确定目标显示屏,其中,第一图层的布局信息指示了第一图层在预设坐标系中所处的显示区域;第二处理器,用于根据至少一个第二图层合成第一图形用户界面GUI;其中,至少一个第二图层包括第一图层;或者,至少一个第二图层包括第一图层以及目标显示屏已显示的第二GUI对应的至少一个图层;目标显示屏,用于显示第一GUI。In a second aspect, the present application provides an electronic device, including a first processor, a second processor, and at least two display screens, the second processor, at least two display screens are coupled to the first processor; the first processor Or the second processor is configured to generate the first layer according to the image data; the first processor is configured to generate the first layer according to the layout information of the first layer and the corresponding display areas of at least two display screens in the preset coordinate system, from Determining a target display screen from at least two display screens, wherein the layout information of the first layer indicates the display area where the first layer is located in a preset coordinate system; the second processor is configured to, according to at least one second Layer synthesis of the first graphical user interface GUI; wherein, at least one second layer includes the first layer; or, at least one second layer includes the first layer and at least one corresponding to the second GUI displayed on the target display screen A layer; a target display screen for displaying the first GUI.
一种可能的设计中,第一处理器,具体用于将至少两个显示屏中,在预设坐标系中对应的显示区域与第一图层在预设坐标系中的显示区域存在重叠区域的至少一个显示屏确定为目标显示屏。In a possible design, the first processor is specifically configured to overlap the corresponding display area in the preset coordinate system of the at least two display screens with the display area of the first layer in the preset coordinate system At least one display screen of is determined as the target display screen.
一种可能的设计中,图像数据为未显示在至少两个显示屏上的图层的数据;第一处理器或者第二处理器,具体用于根据图像数据绘制第一图层。In a possible design, the image data is data of a layer not displayed on at least two display screens; the first processor or the second processor is specifically configured to draw the first layer according to the image data.
一种可能的设计中,图像数据为至少两个显示屏上已显示的第三图层的数据;第一处理器,具体用于获取第三图层在至少两个显示屏上的显示位置的变化数据;根据变化数据,调整图像数据的显示位置,得到第一图层。In a possible design, the image data is the data of the third layer displayed on at least two display screens; the first processor is specifically used to obtain the display position of the third layer on at least two display screens Change data; according to the change data, adjust the display position of the image data to obtain the first layer.
一种可能的设计中,目标显示屏,还用于显示第二GUI;第二GUI对应的全部图层与第一GUI对应的全部图层不同,至少一个第二图层包括第一图层。In a possible design, the target display screen is also used to display the second GUI; all layers corresponding to the second GUI are different from all layers corresponding to the first GUI, and at least one second layer includes the first layer.
一种可能的设计中,目标显示屏,还用于显示第二GUI;第二GUI对应的至少一个图层与第一GUI对应的部分图层相同,至少一个第二图层包括第一图层以及第二GUI对应的至少一个图层。In a possible design, the target display screen is also used to display the second GUI; at least one layer corresponding to the second GUI is the same as part of the layers corresponding to the first GUI, and at least one second layer includes the first layer and at least one layer corresponding to the second GUI.
一种可能的设计中,第二处理器,还用于将第一GUI缓存至与目标显示屏对应的后台缓冲区。In a possible design, the second processor is further configured to cache the first GUI to a back buffer corresponding to the target display screen.
一种可能的设计中,第一处理器,还用于将目标显示屏对应的后台缓冲区切换成目标显示屏对应的前台缓冲区;第一处理器,还用于将目标显示屏对应的前台缓冲区中的第一GUI输出至目标显示屏显示。In a possible design, the first processor is also used to switch the background buffer corresponding to the target display screen to the front buffer corresponding to the target display screen; the first processor is also used to switch the front buffer corresponding to the target display screen The first GUI in the buffer is output to the target display screen for display.
一种可能的设计中,第一处理器为中央处理器(central processing unit,CPU),第二处理器为图形处理器(graphics processing unit,GPU)。In a possible design, the first processor is a central processing unit (central processing unit, CPU), and the second processor is a graphics processing unit (graphics processing unit, GPU).
第三方面,本申请提供一种电子设备,包括至少两个显示屏、一个或多个处理器;显示屏与处理器耦合,处理器用于执行计算机程序指令,以使得电子设备执行如上述第一方面及其中任一设计所述的方法。In a third aspect, the present application provides an electronic device, including at least two display screens and one or more processors; the display screen is coupled to the processor, and the processor is used to execute computer program instructions, so that the electronic device performs the above-mentioned first Aspects and methods of any design thereof.
第四方面,本申请提供一种电子设备,包括至少两个显示屏、存储器、一个或多个处理器,显示屏、存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,处理器从存储器中读取计算机指令,以使得电子设备执行如上述第一方面及其中任一设计所述的方法。In a fourth aspect, the present application provides an electronic device, including at least two display screens, a memory, and one or more processors, the display screen, the memory and the processor are coupled, and the memory is used to store computer program codes, and the computer program codes include computer Instructions, the processor reads computer instructions from the memory, so that the electronic device executes the method described in the above first aspect and any one of the designs.
第五方面,本申请提供一种电子设备,该电子设备具有实现如上述第一方面及其中任一设计所述的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fifth aspect, the present application provides an electronic device, which has the function of implementing the method described in the above first aspect and any one of the designs. This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.
第六方面,本申请提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行如上述第一方面及其中任一设计所述的方法。In a sixth aspect, the present application provides a computer-readable storage medium, on which a computer program or instruction is stored, and when the computer program or instruction is run on the computer, the computer executes the above-mentioned first aspect and any of them. - Design the method described.
第七方面,本申请提供一种计算机程序产品,计算机程序产品包括:计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行如上述第一方面及其中任一设计所述的方法。In a seventh aspect, the present application provides a computer program product, the computer program product including: a computer program or instruction, when the computer program or instruction is run on the computer, the computer executes the above-mentioned first aspect and any one of the designs. method.
第八方面,本申请提供一种芯片系统,包括至少一个处理器和至少一个接口电路,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,当至少一个处理器执行指令时,至少一个处理器执行如上述第一方面及其中任一设计所述的方法。In an eighth aspect, the present application provides a chip system, including at least one processor and at least one interface circuit, at least one interface circuit is used to perform the function of sending and receiving, and send instructions to at least one processor, when at least one processor executes the instruction , at least one processor executes the method described in the above first aspect and any one of the designs.
需要说明的是,上述第二方面至第八方面中任一设计所带来的技术效果可以参见第一方面中对应设计所带来的技术效果,此处不再赘述。It should be noted that, for the technical effect brought by any design in the second aspect to the eighth aspect above, please refer to the technical effect brought by the corresponding design in the first aspect, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一个GUI的示意图;FIG. 1 is a schematic diagram of a GUI provided by an embodiment of the present application;
图2为本申请实施例提供的一种电子设备的结构示意图;FIG. 2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
图3为本申请实施例提供的又一种电子设备的结构示意图;FIG. 3 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
图4为本申请实施例提供的一种计算机系统的结构示意图;FIG. 4 is a schematic structural diagram of a computer system provided by an embodiment of the present application;
图5为本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 5 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
图6为现有的一种更新GUI的方法的流程示意图;FIG. 6 is a schematic flow diagram of an existing method for updating a GUI;
图7为现有的一种完成图像帧显示的过程示意图;FIG. 7 is a schematic diagram of an existing process for completing image frame display;
图8为本申请实施例提供的一种更新GUI的界面示意图;FIG. 8 is a schematic interface diagram of an update GUI provided in an embodiment of the present application;
图9为本申请实施例提供的又一种更新GUI的界面示意图;FIG. 9 is a schematic diagram of another update GUI interface provided by the embodiment of the present application;
图10为本申请实施例提供的一种显示方法的流程示意图;FIG. 10 is a schematic flowchart of a display method provided by an embodiment of the present application;
图11为本申请实施例提供的一种电子设备的各显示屏在预设坐标系中对应的显示区域的示意图;FIG. 11 is a schematic diagram of display areas corresponding to display screens of an electronic device in a preset coordinate system according to an embodiment of the present application;
图12a为本申请实施例提供的一种手机包括的显示屏的各顶点的示意图;Fig. 12a is a schematic diagram of vertices of a display screen included in a mobile phone provided by an embodiment of the present application;
图12b为本申请实施例提供的又一种手机包括的显示屏的各顶点的示意图;Fig. 12b is a schematic diagram of vertices of a display screen included in another mobile phone provided by the embodiment of the present application;
图13为本申请实施例提供的又一种电子设备的各显示屏在预设坐标系中对应的显示区域的示意图;FIG. 13 is a schematic diagram of display areas corresponding to display screens of yet another electronic device in a preset coordinate system according to an embodiment of the present application;
图14为本申请实施例提供的又一种更新GUI的界面示意图;FIG. 14 is a schematic diagram of another update GUI interface provided by the embodiment of the present application;
图15为本申请实施例提供的一种完成图像帧显示的过程示意图;FIG. 15 is a schematic diagram of a process for completing image frame display provided by an embodiment of the present application;
图16为本申请实施例提供的一种电子设备的结构示意图;FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图17为本申请实施例提供的一种芯片系统的结构示意图。FIG. 17 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图对本申请实施例提供的显示方法及电子设备进行详细的描述。The display method and the electronic device provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
本申请的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括其他没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes other unlisted steps or units, or optionally also includes Other steps or elements inherent to the process, method, product or apparatus are included.
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
在本申请的描述中,除非另有说明,“多个”的含义是指两个或两个以上。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。In the description of the present application, unless otherwise specified, the meaning of "plurality" refers to two or more. The "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone These three situations.
本申请实施例提供的显示方法可以应用于电子设备200中,或者应用于包含电子设备200的系统中。The display method provided in the embodiment of the present application may be applied to the electronic device 200 , or to a system including the electronic device 200 .
可选的,电子设备200可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及个人数字助理(personal digital assistant,PDA)、人工智能(artificialintelligence,AI)设备、车载设备、智能家居设备和/或智慧城市设备等各种具有至少两个显示屏的电子设备,本申请实施例对该电子设备200的具体类型不作特殊限制。Optionally, the electronic device 200 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a personal digital assistant ( Various electronic devices with at least two display screens such as personal digital assistant (PDA), artificial intelligence (AI) equipment, vehicle-mounted equipment, smart home equipment and/or smart city equipment, etc., the embodiment of the present application is for the electronic equipment 200 The specific type is not particularly limited.
以电子设备200为支持双屏显示的手机为例,图2示出了本申请实施例提供的一种双屏手机的结构示意图。如图2所示,手机的双屏可以具体实现为图2中(a)图所示的A屏与B屏的形式,也可以实现为图2中(b)图所示的A屏与B屏的形式,手机可以通过A屏以及B屏显示相同或者不同的内容。可以理解的是,在实际应用中,手机的双屏还可以有其他的设置方式,例如:一个显示屏位于手机正面,另一个显示屏位于手机的背面等,各显示屏的大小可以相同也可以不同,本申请并不对各显示屏的设置方式、大小等进行具体限定。Taking the electronic device 200 as an example of a mobile phone supporting dual-screen display, FIG. 2 shows a schematic structural diagram of a dual-screen mobile phone provided by an embodiment of the present application. As shown in Figure 2, the dual screens of the mobile phone can be implemented in the form of A screen and B screen shown in (a) in Figure 2, or in the form of A screen and B screen shown in Figure 2 (b). In the form of screens, the mobile phone can display the same or different content through the A screen and the B screen. It is understandable that in practical applications, the dual screens of the mobile phone can also have other settings, for example: one display screen is located on the front of the mobile phone, and the other display screen is located on the back of the mobile phone, etc. The size of each display screen can be the same or can be Differently, the present application does not specifically limit the setting manner, size, etc. of each display screen.
以电子设备200为支持双屏显示的笔记本电脑为例,图3示出了本申请实施例提供的一种双屏笔记本电脑的结构示意图。笔记本电脑可以通过A屏以及B屏显示相同或者不同的内容。同样的,本申请也不限定该笔记本电脑的各显示屏的设置方式、大小等。Taking the electronic device 200 as an example of a notebook computer supporting dual-screen display, FIG. 3 shows a schematic structural diagram of a dual-screen notebook computer provided by an embodiment of the present application. The notebook computer can display the same or different content through the A screen and the B screen. Likewise, the present application does not limit the arrangement, size, etc. of each display screen of the notebook computer.
可选的,本申请实施例提供的显示方法还可以应用于包括有至少两个显示屏的计算机系统中。可选的,该计算机系统可以包括多台物理主机、便携式电脑、手持设备、车载设备、AI设备、服务器等各种类型的终端。示例性的,如图4所示,为本申请实施例提供的一种支持双屏显示的计算机系统的示意图,在该计算机系统400中,包括显示器401、显示器402,一台或者多台主机403等。其中,显示器401以及显示器402与主机403之间可以通过有线链路或者无线链路建立通信连接。其中,显示器401以及显示器402可用于显示相同或者不同的内容。主机403可用于放置主板及其他主要部件(例如:中央处理器(central processingunit,CPU)、内存、硬盘、光驱、电源、以及其他输入输出控制器和接口等)。可选的,在该通信系统400中还可以包括其他输入输出设备(图中未示出),例如:鼠标、键盘等,以便于用户与计算机系统之间进行信息交互。Optionally, the display method provided in the embodiment of the present application may also be applied to a computer system including at least two display screens. Optionally, the computer system may include various types of terminals such as multiple physical hosts, portable computers, handheld devices, vehicle-mounted devices, AI devices, and servers. Exemplarily, as shown in FIG. 4 , it is a schematic diagram of a computer system supporting dual-screen display provided by the embodiment of the present application. In the computer system 400, a display 401, a display 402, and one or more hosts 403 are included. wait. Wherein, the communication connection between the display 401 and the display 402 and the host 403 can be established through a wired link or a wireless link. Wherein, the display 401 and the display 402 can be used to display the same or different content. The host 403 can be used to place the motherboard and other main components (for example: central processing unit (central processing unit, CPU), memory, hard disk, optical drive, power supply, and other input and output controllers and interfaces, etc.). Optionally, the communication system 400 may also include other input and output devices (not shown in the figure), such as a mouse, a keyboard, etc., so as to facilitate information interaction between the user and the computer system.
示例性的,图5示出了本申请实施例提供的一种电子设备的硬件结构示意图。Exemplarily, FIG. 5 shows a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
电子设备200可以包括处理器210,内部存储器220,通用串行总线(universalserial bus,USB)接口230,充电管理模块240,电源管理模块241,天线1,天线2,移动通信模块250,无线通信模块260,显示屏270等。The electronic device 200 may include a processor 210, an internal memory 220, a universal serial bus (universalserial bus, USB) interface 230, a charging management module 240, a power management module 241, an antenna 1, an antenna 2, a mobile communication module 250, and a wireless communication module 260, display 270, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备200的具体限定。在本申请另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 200 . In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在本申请的一些实施例中,处理器210可执行测量、设置布局、生成多边形和纹理、对多边形和纹理进行栅格式化操作,将处理后的内容写入到各窗口(window)对应的表面(surface)中的一个缓冲区(buffer)中,再将该buffer放入缓冲区队列(buffer queue)。处理器210还可用于将多个surface中的内容合成一帧GUI。The processor 210 may include one or more processing units, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor ( image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors. In some embodiments of the present application, the processor 210 can perform measurement, set layout, generate polygons and textures, perform raster formatting operations on polygons and textures, and write the processed content to the corresponding window (window) Surface (surface) in a buffer (buffer), and then put the buffer into the buffer queue (buffer queue). The processor 210 can also be used to synthesize the contents of multiple surfaces into one frame of GUI.
其中,控制器可以是电子设备200的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 200 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to use the instruction or data again, it can be directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。The charging management module 240 is configured to receive charging input from the charger. Wherein, the charger may be a wireless charger or a wired charger.
电源管理模块241用于连接充电管理模块240与处理器210。电源管理模块241接收充电管理模块240的输入,为处理器210,内部存储器220,显示屏270,和无线通信模块260等供电。The power management module 241 is used for connecting the charging management module 240 and the processor 210 . The power management module 241 receives the input of the charging management module 240 and supplies power to the processor 210 , the internal memory 220 , the display screen 270 , and the wireless communication module 260 .
电子设备200的无线通信功能可以通过天线1、天线2、移动通信模块250、无线通信模块260、调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 200 may be realized by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like.
移动通信模块250可以提供应用在电子设备200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。The mobile communication module 250 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 200 . The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
无线通信模块260可以提供应用在电子设备200上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。The wireless communication module 260 can provide applications on the electronic device 200 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
电子设备200通过GPU,显示屏270,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏270和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 200 realizes the display function through the GPU, the display screen 270 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 270 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏270用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在本申请的一些实施例中,电子设备200可以包括2个或者N个显示屏270,N为大于2的正整数。各显示屏的大小和形状可以相同也可以不同。各显示屏可用于显示相同的内容和/或不同的内容。The display screen 270 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments of the present application, the electronic device 200 may include 2 or N display screens 270 , where N is a positive integer greater than 2. The display screens can be the same or different in size and shape. Each display screen can be used to display the same content and/or different content.
内部存储器220可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器220可以包括存储程序区和存储数据区。内部存储器220可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器210通过运行存储在内部存储器220的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备200的各种功能应用以及数据处理。Internal memory 220 may be used to store computer-executable program code, which includes instructions. The internal memory 220 may include an area for storing programs and an area for storing data. The internal memory 220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 210 executes various functional applications and data processing of the electronic device 200 by executing instructions stored in the internal memory 220 and/or instructions stored in a memory provided in the processor.
可选的,计算机系统400的硬件结构的相关介绍可以参考电子设备200的相关介绍,本文不再赘述。计算机系统400可以具有比图5所示的结构更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。Optionally, for the relevant introduction of the hardware structure of the computer system 400, reference may be made to the relevant introduction of the electronic device 200, which will not be repeated herein. Computer system 400 may have more or fewer components than shown in FIG. 5, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
其中,上述电子设备或者计算机系统可以通过图形显示系统完成GUI的显示。Wherein, the above-mentioned electronic device or computer system may complete GUI display through a graphic display system.
为便于理解,下面给出图形显示系统的介绍。For ease of understanding, an introduction to the graphic display system is given below.
图形显示系统负责图形的处理以及显示,以便为用户提供可视的界面,这些用户可视的界面即为GUI。图形显示系统从软件层面到硬件层面主要分为三个部分:应用层、系统层、硬件层。也即,该图形显示系统可以是电子设备或者计算机系统的若干软件模块和若干硬件模块(如图5所示的处理器210等)的组合。The graphics display system is responsible for processing and displaying graphics, so as to provide users with a visual interface, and these user-visible interfaces are GUIs. The graphics display system is mainly divided into three parts from the software level to the hardware level: application layer, system layer, and hardware layer. That is, the graphic display system may be a combination of several software modules and several hardware modules (such as the processor 210 shown in FIG. 5 ) of an electronic device or a computer system.
应用层中包括各种应用程序(即应用),对于一个应用程序,其在一个GUI上可能存在多个窗口(window)(例如:对话框、状态栏等),如图1所示,状态栏101是一个窗口,主界面102也是一个窗口,虚拟按键栏103也是一个窗口等。每个窗口可以对应一个表面(surface),如图1所示,状态栏101对应一个surface,主界面102对应一个surface,虚拟按键栏103也对应一个surface等。其中,从电子设备内部来讲,该surface是多个buffer的封装,这多个buffer构成一个缓冲区队列(buffer queue)。每一个surface对应一个图层(layer),例如:状态栏101为一个图层,主界面102为一个图层,虚拟按键栏103也为一个图层等。需要指出的是,在本申请实施例中,GUI也可描述为图像、图形、图像帧等,在不作额外说明的情况下,其所要表达的含义相同,在此统一说明。The application layer includes various applications (i.e. applications). For an application, there may be multiple windows (windows) on a GUI (for example: dialog box, status bar, etc.), as shown in Figure 1, the status bar 101 is a window, the main interface 102 is also a window, the virtual button bar 103 is also a window, and so on. Each window may correspond to a surface. As shown in FIG. 1 , the status bar 101 corresponds to a surface, the main interface 102 corresponds to a surface, and the virtual button bar 103 also corresponds to a surface. Wherein, from the inside of the electronic device, the surface is a package of multiple buffers, and the multiple buffers form a buffer queue (buffer queue). Each surface corresponds to a layer. For example, the status bar 101 is a layer, the main interface 102 is a layer, and the virtual button bar 103 is also a layer. It should be noted that, in the embodiment of the present application, the GUI can also be described as an image, a graph, an image frame, etc., and the meanings they intend to express are the same unless additional description is made, and they will be collectively described here.
系统层中主要使用窗口管理器、图形合成者(SurfaceFlinger)等系统服务。The system layer mainly uses system services such as window manager and graphics synthesizer (SurfaceFlinger).
其中,窗口管理器用于管理窗口程序。本申请实施例中,窗口管理器可以是安卓窗口管理器,kwin窗口管理器等,本申请不局限于此。Among them, the window manager is used to manage window programs. In the embodiment of the present application, the window manager may be an Android window manager, a kwin window manager, etc., and the present application is not limited thereto.
窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。窗口管理器可以作为系统服务对窗口进行管理。窗口管理器可以用于监督窗口的生命周期、输入和聚焦事件、屏幕方向、转换、动画、位置、z轴顺序(z-order)等有关窗口的许多方面。其中,z-order可理解为窗口在z轴上的位置,z轴指的是与屏幕垂直的坐标轴,根据z-order可确定窗口之间的上下覆盖关系,也即根据z-order可确定surface之间的上下覆盖关系,换言之,根据z-order可确定图层之间的上下覆盖关系。窗口管理器可为图形合成者提供缓冲区(例如:front buffer以及back buffer)和窗口元数据(例如:窗口的位置、大小、透明度、z-order等)。窗口管理器还用于在接收到应用程序请求创建surface的消息时,向图形合成者请求surface,并将请求得到的surface发送给应用程序。The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. A window manager can manage windows as a system service. A window manager can be used to oversee a window's life cycle, input and focus events, screen orientation, transitions, animations, position, z-order, and many other aspects of a window. Among them, z-order can be understood as the position of the window on the z-axis, and the z-axis refers to the coordinate axis perpendicular to the screen. According to the z-order, the upper and lower coverage relationship between the windows can be determined, that is, it can be determined according to the z-order The upper and lower coverage relationship between surfaces, in other words, the upper and lower coverage relationship between layers can be determined according to z-order. The window manager can provide buffers (for example: front buffer and back buffer) and window metadata (for example: window position, size, transparency, z-order, etc.) to the graphics compositor. The window manager is also used to request the surface from the graphics compositor when receiving the message that the application program requests to create a surface, and send the requested surface to the application program.
图形合成者用来控制每个窗口的合成,以及将多个窗口合并成一个GUI。图形合成者还用于在接收到窗口管理器请求surface的消息时,创建surface,并将其发送给窗口管理器。Graphics Composer is used to control the compositing of each window, and to combine multiple windows into a single GUI. The graphics compositor is also used to create a surface and send it to the window manager when it receives a message from the window manager requesting a surface.
可以理解的是,图形合成者可用于执行窗口管理器的指令,而窗口管理器可用于确定窗口的位置、大小、透明度等有关窗口的各方面信息。It can be understood that the graphics synthesizer can be used to execute the instructions of the window manager, and the window manager can be used to determine the position, size, transparency and other aspects of the window related information.
硬件层主要包括显示后端,即显示屏。例如:该显示后端可以是图5所示的显示屏270。可选的,还可能包括输入设备,例如:鼠标、键盘等。其中,显示屏对应的帧缓冲区可能有多个,以双缓冲区为例,该双缓冲区分别是front buffer以及back buffer。其中frontbuffer用于输出当前显示于屏幕的GUI,back buffer用于后台合成下一个GUI。可以理解的是,如果图形合成者已经合成的一个GUI与正在进行合成的GUI位于同一个缓冲区,则会出现前后两个GUI重叠的情况。因此,为避免出现该情况,可以采用多个帧缓冲区,一个帧缓冲区用于合成一个GUI。The hardware layer mainly includes the display backend, that is, the display screen. For example: the display backend may be the display screen 270 shown in FIG. 5 . Optionally, input devices may also be included, such as a mouse, a keyboard, and the like. Wherein, there may be multiple frame buffers corresponding to the display screen, taking a double buffer as an example, the double buffers are a front buffer and a back buffer respectively. Among them, the frontbuffer is used to output the GUI currently displayed on the screen, and the back buffer is used to synthesize the next GUI in the background. It can be understood that if a GUI already synthesized by the graphics synthesizer is located in the same buffer as the GUI being synthesized, the front and rear GUIs will overlap. Therefore, to avoid this situation, multiple framebuffers can be used, one for compositing a GUI.
电子设备上显示的一个GUI可由电子设备经过一系列的图形绘制流程得到。该图形绘制流程可由上述图形显示系统执行。该图形绘制流程具体包括:图层绘制操作、合成操作以及刷新操作。A GUI displayed on the electronic device can be obtained by the electronic device through a series of graphics drawing processes. The graphics drawing process can be executed by the above-mentioned graphics display system. The graphics drawing process specifically includes: a layer drawing operation, a compositing operation, and a refreshing operation.
图层绘制操作:应用层中的应用程序将要显示的内容绘制在surface中的buffer中的操作称之为图层绘制操作。例如:当应用程序需要显示若干内容时,该应用程序会向窗口管理器请求surface,进而从窗口管理器接收到surface,应用程序可以将需要显示的内容绘制在surface中的buffer中。该绘制操作的具体流程包括:测量视图(view)的宽高,该操作可称之为测量(messure);设置view的宽高位置,该操作可称之为设置布局(layout);生成多边形和纹理;对多边形和纹理进行栅格式化操作;将栅格式化操作后的内容写入到各window对应的surface中的一个buffer中,再将该buffer放入对应的缓冲区队列。Layer drawing operation: the application in the application layer draws the content to be displayed in the buffer in the surface, which is called layer drawing operation. For example: when an application needs to display some content, the application will request the surface from the window manager, and then receive the surface from the window manager, and the application can draw the content to be displayed in the buffer in the surface. The specific process of the drawing operation includes: measuring the width and height of the view (view), which can be called measurement (messure); setting the width and height position of the view, which can be called setting layout (layout); generating polygons and Texture; perform raster formatting operations on polygons and textures; write the content after raster formatting operations into a buffer in the surface corresponding to each window, and then put the buffer into the corresponding buffer queue.
可以理解的是,栅格化操作指的是将矢量图形格式表示的图像转换成位图的操作。view是用来构建GUI中的组件(例如:按钮(button)、文本区域(text fields)等)的基类。It can be understood that the rasterization operation refers to the operation of converting an image expressed in a vector graphics format into a bitmap. view is the base class used to build components in the GUI (eg buttons, text fields, etc.).
合成操作:图形合成者将应用程序绘制的多个surface中的内容合成一个GUI的过程称之为合成操作,换言之,将多个图层合成一个GUI的过程称之为合成操作。其中,图形合成者可以根据窗口管理器提供的缓冲区以及窗口元数据等信息执行该合成操作。该合成操作也可以称之为叠加操作。图形合成者合成一个GUI之后,会向显示屏对应的帧缓冲区写入该GUI的数据。Compositing operation: The process in which a graphics compositor synthesizes the contents of multiple surfaces drawn by an application into a GUI is called a compositing operation. In other words, the process of compositing multiple layers into a GUI is called a compositing operation. Wherein, the graphics compositor can perform the compositing operation according to information such as buffer and window metadata provided by the window manager. This compositing operation may also be referred to as an overlay operation. After the graphics synthesizer synthesizes a GUI, it will write the data of the GUI to the frame buffer corresponding to the display screen.
刷新操作:当下一个垂直同步(vertical synchronization,VSYNC)信号来临时,切换front buffer以及back buffer,即将front buffer切换成back buffer,将backbuffer切换成front buffer,也即刷新屏幕,切换后的front buffer中的GUI数据输出于屏幕显示,切换后的back buffer用于后台合成再下一个GUI,该过程称之为刷新操作。需要说明的是,buffer中的内容支持重用,也就是说,front buffer切换为back buffer之后,其中的内容并不会清空。在front buffer切换为back buffer,且当前屏幕上的内容不需要更新时,在其再次切换为front buffer之后,其中未清空的内容可以直接显示于当前屏幕。Refresh operation: When the next vertical synchronization (VSYNC) signal comes, switch the front buffer and back buffer, that is, switch the front buffer to the back buffer, and switch the back buffer to the front buffer, that is, refresh the screen, and the switched front buffer The GUI data is output on the screen, and the switched back buffer is used to synthesize the next GUI in the background. This process is called a refresh operation. It should be noted that the content in the buffer supports reuse, that is to say, after the front buffer is switched to the back buffer, the content in it will not be cleared. When the front buffer is switched to the back buffer and the content on the current screen does not need to be updated, after it is switched to the front buffer again, the uncleared content can be directly displayed on the current screen.
目前,许多电子设备都支持双屏显示,如果一个屏幕上的显示的图像需要更新,另一个屏幕上的显示的图像不需要更新,该如何实现两个屏幕上图像的显示呢?以电子设备配置的双屏为A屏和B屏为例,假设A屏上显示的图像连续发生变化,例如:第n帧图像到第n+k帧图像连续发生变化;而B屏上显示的图像在一些帧发生变化,在另一些帧不发生变化,例如:第n+k帧图像相对于第n帧图像发生变化,而第n帧图像到第n+k-1帧图像不发生变化。其中,n为正整数,k为大于等于2的正整数。At present, many electronic devices support dual-screen display. If the image displayed on one screen needs to be updated, but the image displayed on the other screen does not need to be updated, how to realize the display of images on the two screens? Taking the dual screens configured by electronic equipment as screen A and screen B as an example, assuming that the image displayed on screen A changes continuously, for example: the image from frame n to frame n+k changes continuously; while the image displayed on screen B changes continuously. The image changes in some frames, but does not change in other frames. For example, the image of frame n+k changes relative to the image of frame n, while the image of frame n to frame n+k-1 does not change. Wherein, n is a positive integer, and k is a positive integer greater than or equal to 2.
这种情况下,为完成A屏上图像和B屏上图像的显示,现有技术中给出了一种解决方案。示例性的,如图6所示,该方案包括以下步骤:S601、在需要更新GUI的情况下,电子设备根据图像数据绘制图层。S602、电子设备对A屏上待显示的图层执行合成操作。S603、电子设备控制A屏显示步骤S602中执行合成操作后的GUI。S604、电子设备对B屏上待显示的图层执行合成操作。S605、电子设备控制B屏显示步骤S604中执行合成操作后的GUI。该方案中,电子设备绘制图层结束之后,不管显示屏上的GUI是否需要更新,电子设备会对两个显示屏上待显示的图层都执行合成操作以及刷新操作,并将合成的结果显示到对应的屏幕上。In this case, in order to complete the display of the image on the A screen and the image on the B screen, a solution is provided in the prior art. Exemplarily, as shown in FIG. 6 , the solution includes the following steps: S601. In the case that the GUI needs to be updated, the electronic device draws a layer according to the image data. S602. The electronic device performs a compositing operation on the layers to be displayed on the screen A. S603. The electronic device controls A screen to display the GUI after the synthesis operation is performed in step S602. S604. The electronic device performs a compositing operation on the layers to be displayed on the screen B. S605. The electronic device controls screen B to display the GUI after the synthesis operation in step S604. In this solution, after the electronic device draws the layers, no matter whether the GUI on the display screen needs to be updated, the electronic device will perform synthesis and refresh operations on the layers to be displayed on the two display screens, and display the result of the synthesis to the corresponding screen.
结合上述情况,以n的取值为1,k的取值为2为例,对图6所示的方案进行详细介绍。图7示出了采用图6所示的方案完成图像帧显示的过程示意图。其中,图7所示的第1行“屏幕内容”为屏幕当前显示的内容。第2行以及第3行所示的缓冲区为A屏以及B屏分别对应的缓冲区。可以理解的是,为便于电子设备确定将缓冲区的数据输出到对应的屏幕显示,屏幕和缓冲区可以预先绑定。以双buffer机制为例,如:A屏与缓冲区0、缓冲区1绑定,B屏与缓冲区2、缓冲区3绑定,在此统一说明。In combination with the above situation, taking the value of n as 1 and the value of k as 2 as an example, the scheme shown in FIG. 6 is introduced in detail. FIG. 7 shows a schematic diagram of a process of displaying image frames using the scheme shown in FIG. 6 . Wherein, the first row "screen content" shown in FIG. 7 is the content currently displayed on the screen. The buffers shown in line 2 and line 3 are the buffers corresponding to screen A and screen B respectively. It can be understood that, in order to facilitate the electronic device to determine to output the data in the buffer to the corresponding screen display, the screen and the buffer can be bound in advance. Take the double buffer mechanism as an example, for example: screen A is bound to buffer 0 and buffer 1, and screen B is bound to buffer 2 and buffer 3, which will be explained uniformly here.
对于第1帧,A屏上以及B屏上显示内容均为“0”,电子设备根据图像数据绘制图层,对于A屏,电子设备根据A屏上待显示的图层执行合成操作,合成的结果为“0”,并将该合成结果存储到缓冲区0中,然后将缓冲区0中的数据输出至A屏显示,完成A屏上第1帧的显示(此时缓冲区0为前台缓冲区,缓冲区1为后台缓冲区)。对于B屏,电子设备根据B屏上待显示的图层执行合成操作,合成的结果为“0”,并将合成的结果存储到缓冲区2中,然后将缓冲区2中的数据输出到B屏显示,完成B屏上第1帧的显示(此时缓冲区2为前台缓冲区,缓冲区3为后台缓冲区)。For the first frame, the content displayed on screen A and screen B is "0", and the electronic device draws layers according to the image data. For screen A, the electronic device executes the synthesis operation according to the layers to be displayed on screen A, and the synthesized The result is "0", and the composite result is stored in buffer 0, and then the data in buffer 0 is output to screen A for display, and the display of the first frame on screen A is completed (buffer 0 is the front buffer at this time area, buffer 1 is the back buffer). For the B screen, the electronic device performs a synthesis operation according to the layer to be displayed on the B screen, and the result of the synthesis is "0", and stores the result of the synthesis into buffer 2, and then outputs the data in buffer 2 to B screen display, complete the display of the first frame on the B screen (at this time, buffer 2 is the front buffer, and buffer 3 is the back buffer).
对于第2帧,A屏上显示内容发生变化,变成“1”,B屏上显示内容未发生变化,显示内容仍为“0”,电子设备根据待显示的图像数据绘制图层,对于A屏,电子设备根据A屏上待显示的图层执行合成操作,合成的结果为“1”,并将该合成结果存储到缓冲区1中。然后切换缓冲区0以及缓冲区1,即执行刷新操作,将缓冲区1中的数据输出至A屏显示,完成A屏上第2帧的显示(此时缓冲区1为前台缓冲区,缓冲区0为后台缓冲区)。对于B屏,由于第2帧相对于第1帧显示内容未发生变化,因此电子设备执行合成操作后,合成的结果与第1帧相同,均为“0”,将该合成的结果存储到缓冲区3中。然后切换缓冲区2以及缓冲区3,即执行刷新操作,将缓冲区3中的数据输出到B屏显示,完成B屏上第2帧的显示(此时缓冲区3为前台缓冲区,缓冲区2为后台缓冲区)。For the second frame, the display content on screen A changes to "1", and the display content on screen B remains unchanged, and the display content is still "0". The electronic device draws the layer according to the image data to be displayed. For A screen, the electronic device executes a compositing operation according to the layers to be displayed on screen A, and the compositing result is "1", and stores the compositing result in buffer 1. Then switch buffer 0 and buffer 1, that is, perform a refresh operation, output the data in buffer 1 to A screen display, and complete the display of the second frame on A screen (at this time, buffer 1 is the front buffer, buffer 0 for the back buffer). For the B screen, since the display content of the second frame has not changed compared with the first frame, after the electronic device performs the synthesis operation, the result of the synthesis is the same as that of the first frame, both of which are "0", and the result of the synthesis is stored in the buffer Zone 3. Then switch buffer 2 and buffer 3, that is, perform a refresh operation, output the data in buffer 3 to the B screen display, and complete the display of the second frame on the B screen (at this time, buffer 3 is the front buffer, buffer 2 for the back buffer).
后续,对于A屏以及B屏,电子设备完成第3帧显示的过程与完成A屏上第2帧显示的过程类似,此处不再详细赘述。Subsequently, for screen A and screen B, the process of the electronic device to complete the display of the third frame is similar to the process of completing the display of the second frame on screen A, and will not be described in detail here.
可以理解的是,对于B屏,如果第3帧显示内容仍旧未发生变化,还为“0”,则电子设备依然会切换缓冲区2与缓冲区3,也即执行刷新操作,但不再执行合成操作。也即电子设备完成第n+2帧图像到第n+k-1帧图像的显示通过重复切换buffer2以及buffer3完成,即重复执行刷新操作完成。It is understandable that, for screen B, if the display content of the third frame remains unchanged and is still "0", the electronic device will still switch between buffer 2 and buffer 3, that is, execute the refresh operation, but no longer Compositing operations. That is, the electronic device completes the display of the image from the n+2th frame to the n+k-1th frame by repeatedly switching buffer2 and buffer3, that is, repeatedly performing the refresh operation to complete.
从图7可知,对于A屏,屏幕上的显示内容发生一次变化,电子设备执行一次合成操作,以及一次切换buffer的操作(即一次刷新操作),因此对于A屏,电子设备执行合成操作的频率以及刷新操作的频率与显示内容的实际变化频率相同。对于B屏,第2帧相对于第1帧显示内容未变化,显示内容均为“0”,对于电子设备仍旧会执行合成操作以及刷新操作,因此,在图7所示的示例下,电子设备执行合成操作的频率以及刷新操作的频率是显示内容实际变化频率的2倍。执行合成操作需要消耗电子设备的性能,包括但不限于CPU、GPU等的性能,而执行刷新操作则会消耗电子设备的带宽(例如:显示通路的带宽)以及功耗等。显然,对于B屏来讲,在显示内容不变时,电子设备执行合成操作以及刷新操作则会浪费电子设备的性能,图7所示的示例中,对于B屏来讲,存在50%的性能浪费。It can be seen from Figure 7 that for screen A, the display content on the screen changes once, and the electronic device performs a synthesis operation and a buffer switching operation (that is, a refresh operation). Therefore, for screen A, the frequency of the electronic device performing the synthesis operation And the frequency of the refresh operation is the same as the actual change frequency of the displayed content. For screen B, the display content of the second frame is unchanged from that of the first frame, and the display content is "0". For the electronic device, the composite operation and refresh operation will still be performed. Therefore, in the example shown in Figure 7, the electronic device The frequency of performing the compositing operation and the frequency of the refresh operation is twice the frequency of the actual change of the displayed content. Executing the compositing operation consumes the performance of electronic devices, including but not limited to the performance of CPU, GPU, etc., while performing the refresh operation consumes the bandwidth of the electronic device (for example: the bandwidth of the display channel) and power consumption. Obviously, for the B screen, when the display content remains unchanged, the performance of the electronic device will be wasted if the electronic device performs the composition operation and refresh operation. In the example shown in Figure 7, for the B screen, there is 50% performance waste.
上述示例是以n的取值为1,k的取值为2进行介绍的,同样的,在n、k为其他取值时,上述方案同样会造成电子设备性能的损失。The above example is introduced with the value of n being 1 and the value of k being 2. Similarly, when n and k are other values, the above solution will also cause loss of performance of the electronic device.
因此为解决上述技术问题,本申请实施例提供一种显示方法,应用于包括至少两个显示屏的电子设备中,电子设备根据图像数据生成第一图层,并根据第一图层的布局信息以及至少两个显示屏在预设坐标系中对应的显示区域,从至少两个显示屏中确定目标显示屏,其中第一图层的布局信息指示了第一图层在预设坐标系中所处的显示区域。然后电子设备根据至少一个第二图层合成第一GUI,并控制目标显示屏显示第一GUI。其中,目标显示屏可以是需要更新GUI的显示屏,至少一个第二图层是目标显示屏上待显示GUI对应的图层。也即电子设备只有在确定显示屏上显示的GUI需要更新时,才会对该显示屏上待显示的图层执行合成操作,合成之后,通过刷新操作将合成的GUI输出至该显示屏显示。对于显示的GUI不需要更新的显示屏来讲,电子设备不会对该显示屏上待显示的图层执行合成操作以及刷新操作。由此,可以减少电子设备执行不必要的操作所带来的性能损失。Therefore, in order to solve the above technical problems, an embodiment of the present application provides a display method, which is applied to an electronic device including at least two display screens. The electronic device generates the first layer according to the image data, and according to the layout information of the first layer and the corresponding display areas of the at least two display screens in the preset coordinate system, determining the target display screen from the at least two display screens, wherein the layout information of the first layer indicates the location of the first layer in the preset coordinate system display area at . Then the electronic device synthesizes the first GUI according to the at least one second layer, and controls the target display screen to display the first GUI. Wherein, the target display screen may be a display screen that needs to update the GUI, and at least one second layer is a layer corresponding to the GUI to be displayed on the target display screen. That is to say, only when the electronic device determines that the GUI displayed on the display screen needs to be updated, it will perform a composition operation on the layers to be displayed on the display screen, and after the composition, the synthesized GUI will be output to the display screen for display through a refresh operation. For a display screen where the displayed GUI does not need to be updated, the electronic device will not perform composition operations and refresh operations on the layers to be displayed on the display screen. Thus, the performance loss caused by unnecessary operations performed by the electronic device can be reduced.
下面结合附图说明本申请实施提供的方案。The scheme provided by the implementation of the present application will be described below in conjunction with the accompanying drawings.
以电子设备包括A屏以及B屏为例。一种可能的示例中,电子设备生成第一图层时采用的图像数据为未显示在A屏以及B屏上的图层的数据。如图8所示,A屏显示主界面800,B屏显示计算器界面801。电子设备检测到用户用于触发电子设备显示若干新界面的操作,例如用户对视频应用的图标802的点击操作,响应于该点击操作,电子设备确定需要更新GUI,也即电子设备确定应用程序存在绘制需求,电子设备则执行图层绘制操作,电子设备根据待更新的内容(即图像数据)绘制第一图层。在该示例中,该待更新的内容即为视频应用请求显示的内容,即视频应用的相关界面,图像数据为该未显示的视频应用的相关界面的数据。若电子设备根据第一图层的布局信息以及A屏和B屏在预设坐标系中对应的显示区域确定仅需要更新目标显示屏的GUI,以目标显示屏为A屏为例,则电子设备仅对A屏上待显示的第二图层执行合成操作,生成第一GUI,然后控制A屏显示第一GUI。示例性的,A屏可以显示诸如界面803所示的视频应用的相关界面,B屏仍显示计算器界面801。Take an electronic device including a screen A and a screen B as an example. In a possible example, the image data used by the electronic device to generate the first layer is the data of layers not displayed on the A screen and the B screen. As shown in FIG. 8 , screen A displays a main interface 800 , and screen B displays a calculator interface 801 . The electronic device detects the user's operation for triggering the electronic device to display several new interfaces, such as the user's click operation on the icon 802 of the video application. In response to the click operation, the electronic device determines that the GUI needs to be updated, that is, the electronic device determines that the application program exists The electronic device executes the layer drawing operation according to the drawing requirement, and the electronic device draws the first layer according to the content to be updated (ie image data). In this example, the content to be updated is the content requested to be displayed by the video application, that is, the relevant interface of the video application, and the image data is the data of the undisplayed relevant interface of the video application. If the electronic device determines that only the GUI of the target display screen needs to be updated according to the layout information of the first layer and the corresponding display areas of screen A and screen B in the preset coordinate system, taking the target display screen as screen A as an example, the electronic device Only execute the composition operation on the second layer to be displayed on the A screen to generate the first GUI, and then control the A screen to display the first GUI. Exemplarily, screen A may display related interfaces of video applications such as interface 803 , while screen B still displays calculator interface 801 .
另一种可能的示例中,电子设备生成第一图层时采用的图像数据为已显示在A屏和/或B屏上的第三图层的数据。如图9所示,A屏显示界面900,界面900中包括主界面901以及在主界面上悬浮显示的聊天界面902(即第三图层),B屏显示计算器界面903。电子设备检测到用户对聊天界面902的移动操作,响应于该移动操作,电子设备确定需要更新GUI,则电子设备根据待更新的内容(即图像数据)生成第一图层。该示例中,图像数据为已显示在A屏上的聊天界面902的数据。具体的,电子设备可以根据用户的移动操作获取聊天界面902在显示屏上的显示位置的变化数据,根据该变化数据调整聊天界面902对应的图像数据的显示位置,得到第一图层。示例性的,如界面905所示,聊天界面由界面900所示的位置变化为界面905所示的位置,界面905所示的聊天界面904即第一图层。电子设备根据第一图层的布局信息(也即经过显示位置调整后的第三图层的布局信息)以及A屏和B屏在预设坐标系中对应的显示区域确定仅更新目标显示屏的GUI。以目标显示屏为A屏为例,电子设备仅对A屏上待显示的第二图层执行合成操作,生成第一GUI,然后通过A屏显示第一GUI。示例性的,A屏可以显示诸如界面905所示的界面,B屏仍显示计算器界面903。In another possible example, the image data used by the electronic device to generate the first layer is the data of the third layer already displayed on the A screen and/or the B screen. As shown in FIG. 9 , screen A displays an interface 900 , which includes a main interface 901 and a chat interface 902 (ie, the third layer) floating on the main interface, and screen B displays a calculator interface 903 . The electronic device detects the user's movement operation on the chat interface 902, and in response to the movement operation, the electronic device determines that the GUI needs to be updated, and then the electronic device generates the first layer according to the content to be updated (ie image data). In this example, the image data is the data of the chat interface 902 already displayed on screen A. Specifically, the electronic device may obtain change data of the display position of the chat interface 902 on the display screen according to the user's mobile operation, adjust the display position of the image data corresponding to the chat interface 902 according to the change data, and obtain the first layer. Exemplarily, as shown in the interface 905, the chat interface changes from the position shown in the interface 900 to the position shown in the interface 905, and the chat interface 904 shown in the interface 905 is the first layer. According to the layout information of the first layer (that is, the layout information of the third layer after display position adjustment) and the corresponding display areas of the A screen and the B screen in the preset coordinate system, the electronic device determines to only update the target display screen. GUI. Taking the target display screen as the A screen as an example, the electronic device only performs a compositing operation on the second layer to be displayed on the A screen to generate a first GUI, and then displays the first GUI through the A screen. Exemplarily, screen A may display an interface such as interface 905 , while screen B still displays calculator interface 903 .
可以理解,在该示例中,第一图层与第三图层的区别仅在于二者在显示屏上显示的位置不同。需要说明的是,第一图层和第三图层在显示屏上的位置不同包括但不限于二者位于同一个显示屏上的不同位置,二者位于不同显示屏上等。It can be understood that, in this example, the difference between the first layer and the third layer is only that the two display positions on the display screen are different. It should be noted that the different positions of the first layer and the third layer on the display screen include, but not limited to, the two are located at different positions on the same display screen, and the two are located on different display screens.
需要说明的是,本申请实施例中,各界面图仅仅是示意图,并不构成对本申请的限定,在实际应用中,各界面可以包括更多或者更少的内容,也可以包括更多或者更少的界面。It should be noted that in this embodiment of the application, each interface diagram is only a schematic diagram and does not constitute a limitation to the application. In practical applications, each interface may include more or less content, or may include more or more content. less interface.
本申请实施例提供一种显示方法,该方法可以应用于包括至少两个显示屏的电子设备中,也可应用诸如图4所示的包括至少两个显示屏的计算机系统中。其中,至少两个显示屏可用于显示GUI,示例性的,在本申请实施例中,图8所示的主界面800、计算器界面801、视频界面803,图9所示的界面900、界面905等均可称之为一个GUI,该GUI为显示屏上当前显示的界面。可选的,电子设备可以通过至少两个显示屏显示相同或者不同的GUI,不同的GUI包括但不限于不同应用的GUI,同一应用的不同GUI等。示例性的,以电子设备为支持双屏显示的手机的为例,图8示出了手机A屏显示的GUI和B屏显示的GUI不相同的界面示意图。An embodiment of the present application provides a display method, which can be applied to an electronic device including at least two display screens, and can also be applied to a computer system including at least two display screens such as that shown in FIG. 4 . Among them, at least two display screens can be used to display the GUI. Exemplarily, in the embodiment of the present application, the main interface 800, the calculator interface 801, and the video interface 803 shown in FIG. 8, the interface 900, and the interface shown in FIG. 905 and the like can all be referred to as a GUI, which is the interface currently displayed on the display screen. Optionally, the electronic device may display the same or different GUIs through at least two display screens, and the different GUIs include but not limited to GUIs of different applications, different GUIs of the same application, and the like. Exemplarily, taking the electronic device as an example of a mobile phone supporting dual-screen display, FIG. 8 shows a schematic diagram of an interface in which the GUI displayed on screen A of the mobile phone is different from the GUI displayed on screen B of the mobile phone.
示例性的,如图10所示,为本申请实施例提供的一种显示方法的流程示意图,该方法包括以下步骤:Exemplarily, as shown in FIG. 10 , it is a schematic flowchart of a display method provided in the embodiment of the present application, and the method includes the following steps:
S1001、电子设备根据图像数据生成第一图层。S1001. The electronic device generates a first layer according to image data.
其中,该图像数据可以是已显示在至少两个显示屏上的图层的数据,也可以是未显示在至少两个显示屏上的图层的数据。Wherein, the image data may be data of layers displayed on at least two display screens, or data of layers not displayed on at least two display screens.
一种可能的示例中,该图像数据为未显示在至少两个显示屏上的图层的数据,则电子设备可以根据该图像数据绘制第一图层。其中,该绘制第一图层的过程即为图层绘制操作,电子设备可以将该图像数据绘制在surface中的buffer中。示例性的,如图8所示的示例,该图像数据可以是应用程序请求显示的某个新界面的数据。In a possible example, the image data is data of a layer not displayed on at least two display screens, and the electronic device may draw the first layer according to the image data. Wherein, the process of drawing the first layer is a layer drawing operation, and the electronic device can draw the image data in the buffer in the surface. Exemplarily, as shown in FIG. 8 , the image data may be data of a new interface requested by the application program to be displayed.
另一种可能的示例中,该图像数据为至少两个显示屏上已显示的第三图层的数据。可以理解,第三图层可以是至少两个显示屏上已显示的图层中的任一个,第三图层的数目可以为一个或者多个。则电子设备可以获取第三图层在至少两个显示屏上的显示位置的变化数据,然后电子设备根据该变化数据,调整图像数据的显示位置,得到第一图层,即第一图层是通过调整第三图层在显示屏上的显示位置获得的。示例性的,如图9所示的示例,图像数据可以是之前已经显示在A屏上的聊天界面902(即第三图层)的数据。在该示例中,电子设备无需根据图像数据再次绘制第一图层,也即无需执行图层绘制操作,只是通过调整图像数据在显示屏上的显示位置即可获得第一图层。In another possible example, the image data is the data of the third layer already displayed on at least two display screens. It can be understood that the third layer may be any one of the layers displayed on at least two display screens, and the number of the third layer may be one or more. Then the electronic device can obtain the change data of the display position of the third layer on at least two display screens, and then the electronic device adjusts the display position of the image data according to the change data to obtain the first layer, that is, the first layer is Obtained by adjusting the display position of the third layer on the display. Exemplarily, as shown in FIG. 9 , the image data may be the data of the chat interface 902 (that is, the third layer) that has been displayed on screen A before. In this example, the electronic device does not need to draw the first layer again according to the image data, that is, does not need to perform a layer drawing operation, but only adjusts the display position of the image data on the display screen to obtain the first layer.
可选的,上述图像数据可以根据用户的操作(例如:用户打开若干界面的操作、用户移动某界面上的窗口的操作、用户播放视频的操作等)获得。Optionally, the above image data may be obtained according to user operations (for example, the user's operation of opening several interfaces, the user's operation of moving a window on a certain interface, the user's operation of playing a video, etc.).
可选的,第一图层的数目可以为一个或多个,该一个或多个第一图层可以属于同一应用,也可属于不同应用。Optionally, there may be one or more first layers, and the one or more first layers may belong to the same application, or may belong to different applications.
可选的,在电子设备根据图像数据生成第一图层之前,在至少两个显示屏上可以显示有GUI,也可以未显示有GUI,本申请对此不作限定。Optionally, before the electronic device generates the first layer according to the image data, GUIs may or may not be displayed on at least two display screens, which is not limited in this application.
S1002、电子设备根据第一图层的布局信息以及至少两个显示屏在预设坐标系中对应的显示区域,从至少两个显示屏中确定目标显示屏。S1002. The electronic device determines a target display screen from at least two display screens according to the layout information of the first layer and the corresponding display areas of the at least two display screens in the preset coordinate system.
其中,第一图层的布局信息指示了第一图层在预设坐标系中所处的显示区域。Wherein, the layout information of the first layer indicates the display area where the first layer is located in the preset coordinate system.
可选的,第一图层在预设坐标系中所处的显示区域的形状不同,则第一图层的布局信息可以为不同的表示形式。示例性的,以第一图层在预设坐标系中所处的显示区域的形状为矩形为例,该第一图层的布局信息具体可以包括该矩形显示区域的顶点坐标、长宽等信息。以该第一图层在预设坐标系中所处的显示区域的形状为圆形为例,该第一图层的布局信息具体可以包括该圆形显示区域的圆心坐标、半径长度等信息等。当第一图层对应的显示区域为其他形状的区域时,该第一图层的布局信息还可以包括其他形式的信息。本申请并不限定第一图层的布局信息的具体表示形式。Optionally, if the shapes of the display areas where the first layer is located in the preset coordinate system are different, the layout information of the first layer may be expressed in different forms. Exemplarily, taking the shape of the display area where the first layer is located in the preset coordinate system as a rectangle as an example, the layout information of the first layer may specifically include information such as vertex coordinates, length and width of the rectangular display area . Taking the shape of the display area where the first layer is located in the preset coordinate system as a circle as an example, the layout information of the first layer may specifically include information such as the coordinates of the center of the circular display area, the radius length, etc. . When the display area corresponding to the first layer is an area of other shapes, the layout information of the first layer may also include other forms of information. The present application does not limit the specific representation form of the layout information of the first layer.
可选的,电子设备可以将至少两个显示屏中,在预设坐标系中对应的显示区域与第一图层在预设坐标系中的所处显示区域存在重叠区域的至少一个显示屏确定为目标显示屏,即可能存在一个或多个目标显示屏。可以理解,第一图层在预设坐标系中的所处显示区域与目标显示屏在预设坐标系中的显示区域存在重叠区域,则说明第一图层需要显示在目标显示屏上,换言之,目标显示屏是用来显示第一图层的显示屏。反之,若第一图层在预设坐标系中所处的显示区域与某显示屏在预设坐标系中对应的显示区域不存在重叠区域,则说明第一图层不需要显示在该显示屏上。Optionally, the electronic device may determine at least one of the at least two display screens whose corresponding display area in the preset coordinate system overlaps with the display area where the first layer is located in the preset coordinate system is the target display screen, that is, there may be one or more target display screens. It can be understood that if the display area of the first layer in the preset coordinate system overlaps with the display area of the target display screen in the preset coordinate system, it means that the first layer needs to be displayed on the target display screen, in other words , the target display is the display used to display the first layer. Conversely, if there is no overlapping area between the display area where the first layer is located in the preset coordinate system and the corresponding display area of a display screen in the preset coordinate system, it means that the first layer does not need to be displayed on the display screen superior.
可选的,在一些实施例中,电子设备根据第一图层在预设坐标系中的显示区域,在显示屏在预设坐标系中对应的显示区域上的显示位置,可以确定第一图层在显示屏上的实际显示位置。Optionally, in some embodiments, the electronic device may determine the display position of the first layer on the corresponding display area of the display screen in the preset coordinate system according to the display area of the first layer in the preset coordinate system. The actual display position of the layer on the display.
需要指出的是,预设坐标系可以为直角坐标系、极坐标系等,其可以由开发人员根据实际需求设定,本申请对预设坐标系的类型不作任何限定。It should be pointed out that the preset coordinate system can be a rectangular coordinate system, a polar coordinate system, etc., which can be set by developers according to actual needs, and this application does not make any limitation on the type of the preset coordinate system.
示例性的,以预设坐标系为直角坐标系,电子设备包括的显示屏为A屏以及B屏,A屏的大小以及B屏的大小相同,长度均为1920像素(pixel,P),宽度均为1080P,形状均为矩形为例。Exemplarily, with the preset coordinate system as the Cartesian coordinate system, the display screens included in the electronic device are A screen and B screen, the size of the A screen and the B screen are the same, the length is 1920 pixels (pixel, P), and the width is 1920 pixels. All are 1080P, and the shapes are all rectangles as an example.
图11示出了电子设备的各显示屏在预设坐标系中对应的显示区域的示意图。如图11所示,A屏在预设坐标系中对应的显示区域(后文简称为A屏对应的显示区域)以及B屏在预设坐标系对应的显示区域(后文简称为B屏对应的显示区域)均为矩形区域,且在预设坐标系中左右排列。可选的,显示屏在预设坐标系中对应的显示区域的形状和显示屏的形状可以相同,显示屏在预设坐标系中对应的显示区域的大小和显示屏的大小也可以相同。FIG. 11 shows a schematic diagram of display areas corresponding to each display screen of an electronic device in a preset coordinate system. As shown in Figure 11, the corresponding display area of A screen in the preset coordinate system (hereinafter referred to as the corresponding display area of A screen) and the corresponding display area of B screen in the preset coordinate system (hereinafter referred to as the corresponding display area of B screen) display area) are rectangular areas, and are arranged left and right in the preset coordinate system. Optionally, the shape of the display area corresponding to the display screen in the preset coordinate system may be the same as the shape of the display screen, and the size of the display area corresponding to the display screen in the preset coordinate system may also be the same as the size of the display screen.
如图11所示,A屏对应的显示区域A的四个顶点坐标分别为(0,0),(1920,0),(0,1080),(1920,1080),这四个顶点依次对应A屏的左上角、左下角、右上角、右下角;B屏对应的显示区域B的四个顶点的坐标分别为(1920,0),(3840,0),(1920,1080),(3840,1080),这四个顶点依次对应B屏的左上角、左下角、右上角、右下角。As shown in Figure 11, the coordinates of the four vertices of the display area A corresponding to screen A are (0,0), (1920,0), (0,1080), (1920,1080), and these four vertices correspond to The upper left corner, lower left corner, upper right corner, and lower right corner of screen A; the coordinates of the four vertices of display area B corresponding to screen B are (1920,0), (3840,0), (1920,1080), (3840 , 1080), these four vertices correspond to the upper left corner, lower left corner, upper right corner, and lower right corner of the B screen in turn.
假设第一图层在预设坐标系中对应的显示区域为矩形区域,该第一图层的布局信息指示了该第一图层在预设坐标系中对应的矩形区域的左下顶点坐标为(850,740),长度为650P,宽度为360P。从图11可以看出,该第一图层在预设坐标系中对应的显示区域为矩形区域C。可知,该矩形区域C与A屏对应的显示区域A存在重叠区域,与B屏对应的显示区域B不存在重叠区域,电子设备可以确定A屏为目标显示屏。Assuming that the display area corresponding to the first layer in the preset coordinate system is a rectangular area, the layout information of the first layer indicates that the coordinates of the lower left vertex of the rectangular area corresponding to the first layer in the preset coordinate system are ( 850,740), the length is 650P, and the width is 360P. It can be seen from FIG. 11 that the corresponding display area of the first layer in the preset coordinate system is a rectangular area C. It can be seen that there is an overlapping area between the rectangular area C and the display area A corresponding to the screen A, but there is no overlapping area with the display area B corresponding to the screen B, and the electronic device can determine that the screen A is the target display screen.
为便于理解显示屏在预设坐标系中对应的显示区域的各顶点与实际的物理显示屏的各顶点之间的映射关系,以该示例下的电子设备为包括A屏以及B屏的手机为例,图12a示出了一种手机包括的A屏以及B屏的各个顶点的示意图,其中A屏与B屏左右排列。图12b示出了又一种手机包括的A屏以及B屏的各个顶点的示意图,其中A屏与B屏上下排列。In order to facilitate the understanding of the mapping relationship between the vertices of the display area corresponding to the display screen in the preset coordinate system and the vertices of the actual physical display screen, the electronic device in this example is a mobile phone including A screen and B screen. For example, Fig. 12a shows a schematic diagram of the vertices of A-screen and B-screen included in a mobile phone, where A-screen and B-screen are arranged left and right. Fig. 12b shows a schematic diagram of the vertices of A-screen and B-screen included in another mobile phone, where A-screen and B-screen are arranged vertically.
示例性的,图13示出了又一种电子设备的各显示屏在预设坐标系中对应的显示区域的示意图。如图13所示,A屏对应的显示区域与B屏对应的显示区域均为矩形区域,且在预设坐标系中上下排列。如图13所示,A屏对应的显示区域A的四个顶点坐标分别为(0,0),(1920,0),(0,1080),(1920,1080),这四个顶点依次对应A屏的左上角、左下角、右上角、右下角;B屏对应的显示区域的四个顶点的坐标分别为(0,1080),(0,2160),(1920,1080),(1920,2160),这四个顶点依次对应B屏的左上角、右上角、左下角、右下角。Exemplarily, FIG. 13 shows a schematic diagram of display areas corresponding to display screens of yet another electronic device in a preset coordinate system. As shown in FIG. 13 , the display area corresponding to screen A and the display area corresponding to screen B are both rectangular areas, and are arranged up and down in a preset coordinate system. As shown in Figure 13, the coordinates of the four vertices of the display area A corresponding to screen A are (0,0), (1920,0), (0,1080), (1920,1080), and these four vertices correspond to The upper left corner, lower left corner, upper right corner, and lower right corner of screen A; the coordinates of the four vertices of the display area corresponding to screen B are (0, 1080), (0, 2160), (1920, 1080), (1920, 2160), these four vertices correspond to the upper left corner, upper right corner, lower left corner, and lower right corner of the B screen in turn.
需要说明的是,本申请并不限定电子设备的各显示屏在预设坐标系中对应的具体显示区域,其可以在图11、图13所示示例的基础上在预设坐标系中任意移动,或者任意旋转,各显示屏对应的显示区域可以相邻排列,也可以不相邻排列。It should be noted that this application does not limit the specific display area corresponding to each display screen of the electronic device in the preset coordinate system, which can be moved arbitrarily in the preset coordinate system based on the examples shown in Figure 11 and Figure 13 , or rotate arbitrarily, the corresponding display areas of each display screen can be arranged adjacently or not.
S1003、电子设备根据至少一个第二图层合成第一GUI。S1003. The electronic device synthesizes the first GUI according to at least one second layer.
其中,至少一个第二图层包括第一图层。或者,至少一个第二图层包括第一图层以及目标显示屏已显示的第二GUI对应的至少一个图层。可以理解,该第二图层为目标显示屏待显示的图层。Wherein, at least one second layer includes the first layer. Alternatively, the at least one second layer includes the first layer and at least one layer corresponding to the second GUI already displayed on the target display screen. It can be understood that the second layer is the layer to be displayed on the target display screen.
一种可能的实现方式中,在电子设备根据至少一个第二图层合成第一GUI之前,电子设备通过目标显示屏显示第二GUI,第二GUI对应的全部图层与第一GUI对应的全部图层不同,即第一GUI是一个完全新的GUI,则至少一个第二图层包括第一图层。In a possible implementation manner, before the electronic device synthesizes the first GUI according to at least one second layer, the electronic device displays the second GUI through the target display screen, and all layers corresponding to the second GUI are equal to all layers corresponding to the first GUI. The layers are different, ie the first GUI is a completely new GUI, then at least one second layer comprises the first layer.
示例性的,以图8为例,电子设备包括A屏以及B屏,其中A屏为目标显示屏,图像数据为未显示在A屏以及B屏上的图层数据。A屏上显示的视频界面803为第一GUI,A屏上显示的主界面800为第二GUI。第一GUI中包括图层803,第二GUI中包括图层800,图层803与图层800不同。可知,第一GUI中包括的图层与第二GUI中包括的图层均不同。此时,至少一个第二图层即为第一图层,第二图层以及第一图层均为图层803。Exemplarily, taking FIG. 8 as an example, the electronic device includes screen A and screen B, wherein screen A is a target display screen, and image data is layer data not displayed on screen A and screen B. The video interface 803 displayed on the screen A is the first GUI, and the main interface 800 displayed on the screen A is the second GUI. The first GUI includes a layer 803 , the second GUI includes a layer 800 , and the layer 803 is different from the layer 800 . It can be seen that the layers included in the first GUI are different from the layers included in the second GUI. At this time, at least one second layer is the first layer, and both the second layer and the first layer are layers 803 .
另一种可能的实现方式中,在电子设备根据至少一个第二图层合成第一GUI之前,电子设备通过目标显示屏显示第二GUI,第二GUI对应的至少一个图层与第一GUI对应的部分图层相同,则至少一个第二图层包括第一图层以及第二GUI对应的至少一个图层。也即第一GUI中可以包括第二GUI中的部分图层。In another possible implementation manner, before the electronic device synthesizes the first GUI according to at least one second layer, the electronic device displays the second GUI through the target display screen, and at least one layer corresponding to the second GUI corresponds to the first GUI part of the layers are the same, then at least one second layer includes the first layer and at least one layer corresponding to the second GUI. That is, the first GUI may include some layers in the second GUI.
示例性的,以图9为例,电子设备包括A屏以及B屏,其中A屏为目标显示屏,图像数据为已显示在A屏上的图层的数据。可以理解,该示例是以图像数据为已显示在目标显示屏上的图层的数据进行说明的。本申请实施例中,图像数据可以是已显示在目标显示屏上的图层的数据,也可以是已显示在除目标显示屏之外的其他显示屏上的图层数据,还可以是已显示在目标显示屏上的图层和已显示在在除目标显示屏之外的其他显示屏上的图层的数据。Exemplarily, taking FIG. 9 as an example, the electronic device includes a screen A and a screen B, wherein the screen A is a target display screen, and the image data is data of a layer already displayed on the screen A. It can be understood that this example is described with the image data being the data of the layer already displayed on the target display screen. In the embodiment of the present application, the image data may be the data of the layer displayed on the target display screen, or the layer data displayed on other display screens except the target display screen, or the data of the layer displayed on the target display screen. Data for layers on the target display and layers already displayed on displays other than the target display.
其中,A屏上显示的界面905为第一GUI,A屏上显示的界面900为第二GUI。第一GUI中包括图层901以及图层904,第二GUI中包括图层901以及图层902。可以理解,本申请实施例中,图层902与图层904中显示内容相同,但是在显示屏上的显示位置不同,因此二者为不同的图层。第一GUI以及第二GUI中均包括图层901。可知,第一GUI中包括的部分图层与第二GUI中的包括的部分图层相同。此时,至少一个第二图层包括第一图层以及第二GUI中的部分图层,第一图层即图层904,第二GUI中的部分图层即图层901。Wherein, the interface 905 displayed on the screen A is the first GUI, and the interface 900 displayed on the screen A is the second GUI. The first GUI includes a layer 901 and a layer 904 , and the second GUI includes a layer 901 and a layer 902 . It can be understood that in the embodiment of the present application, the content displayed in layer 902 and layer 904 is the same, but the display positions on the display screen are different, so the two are different layers. Both the first GUI and the second GUI include a layer 901 . It can be seen that the partial layers included in the first GUI are the same as the partial layers included in the second GUI. At this time, at least one second layer includes the first layer and some layers in the second GUI, the first layer is layer 904 , and the part layer in the second GUI is layer 901 .
示例性的,以图14为例,图像数据为未显示在A屏以及B屏上的图层数据。电子设备包括A屏以及B屏,其中,A屏显示视频界面1400,B屏显示计算器界面1402。电子设备检测到用户对A屏上的消息通知图标1401的点击操作,响应于该点击操作,电子设备确定需要更新GUI,则电子设备根据图像数据绘制第一图层。电子设备根据第一图层的布局信息以及A屏和B屏在预设坐标系中对应的显示区域确定A屏为目标显示屏,则电子设备对A屏上待显示的第二图层执行合成操作,生成第一GUI,并控制A屏显示第一GUI。示例性的,电子设备A屏显示诸如界面1405所示的界面,在界面1405中包括视频界面1400以及在视频界面上悬浮显示的聊天界面1403(即第一图层),B屏仍显示计算器界面1402。Exemplarily, taking FIG. 14 as an example, the image data is the layer data not displayed on the A screen and the B screen. The electronic device includes a screen A and a screen B, wherein the screen A displays a video interface 1400 , and the screen B displays a calculator interface 1402 . The electronic device detects the user's click operation on the message notification icon 1401 on screen A, and in response to the click operation, the electronic device determines that the GUI needs to be updated, and then the electronic device draws the first layer according to the image data. The electronic device determines that screen A is the target display screen according to the layout information of the first layer and the corresponding display areas of screen A and screen B in the preset coordinate system, and then the electronic device performs synthesis on the second layer to be displayed on screen A Operation, generate the first GUI, and control screen A to display the first GUI. Exemplarily, the screen A of the electronic device displays an interface such as interface 1405, which includes a video interface 1400 and a chat interface 1403 (that is, the first layer) floating on the video interface, and the screen B still displays a calculator interface 1402 .
其中,A屏上显示的界面1405为第一GUI,A屏上显示的界面1400为第二GUI。第一GHI中包括图层1400以及图层1403,第二GUI中包括图层1400。可知,第一GUI以及第二GUI中均包括图层1400。可知,第一GUI中包括的部分图层与第二GUI中的部分图层相同。此时至少一个第二图层包括第一图层以及第二GUI中的部分图层,第一图层即图层1403,至第二GUI中的部分图层即图层1400。Wherein, the interface 1405 displayed on the screen A is the first GUI, and the interface 1400 displayed on the screen A is the second GUI. Layer 1400 and layer 1403 are included in the first GHI, and layer 1400 is included in the second GUI. It can be seen that both the first GUI and the second GUI include the layer 1400 . It can be seen that the partial layers included in the first GUI are the same as the partial layers included in the second GUI. At this moment, at least one second layer includes the first layer and some layers in the second GUI, the first layer is layer 1403 , and the part layer in the second GUI is layer 1400 .
又一种可能的实现方式中,在电子设备根据至少一个第二图层合成第一GUI之前,电子设备未通过目标显示屏显示GUI,则至少一个第二图层包括第一图层。In yet another possible implementation manner, before the electronic device synthesizes the first GUI according to the at least one second layer, the electronic device does not display the GUI through the target display screen, and the at least one second layer includes the first layer.
需要说明的是,本申请实施例中,上述实现方式对于步骤S1001所提及的两种图像数据的情况均适用,不再一一举例说明。It should be noted that, in the embodiment of the present application, the above-mentioned implementation manner is applicable to the two kinds of image data mentioned in step S1001 , and no further examples are given here.
可选的,可能存在一个或者多个目标显示屏,也可能存在一个或多个第一图层。在存在一个目标显示屏的情况下,至少一个第二图层包括一个或多个第一图层中的全部图层;在存在多个目标显示屏的情况下,至少一个第二图层可以包括一个或多个第一图层中的部分图层。Optionally, there may be one or more target display screens, and there may also be one or more first layers. In the case of one target display screen, at least one second layer includes all layers in one or more first layers; in the case of multiple target display screens, at least one second layer may include Partial layers within one or more first layers.
可以理解,电子设备根据至少一个第二图层合成第一GUI的过程即为合成操作,即对显示屏上待显示的surface中的内容执行合成操作。本申请实施例中,电子设备只有在确定显示屏上显示的GUI需要更新时,才会对该显示屏上待显示的图层执行合成操作。对于显示的GUI不需要更新的显示屏,不会对该显示屏上待显示的图层执行合成操作。It can be understood that the process of synthesizing the first GUI by the electronic device according to at least one second layer is a synthesizing operation, that is, performing the synthesizing operation on the content in the surface to be displayed on the display screen. In the embodiment of the present application, the electronic device will perform a composition operation on the layers to be displayed on the display screen only when it is determined that the GUI displayed on the display screen needs to be updated. For a display screen whose displayed GUI does not need to be updated, no compositing operation will be performed on the layers to be displayed on the display screen.
可选的,在电子设备根据至少一个第二图层合成第一GUI之后,电子设备还可以将第一GUI缓存至与目标显示屏对应的后台缓存区。可以理解的是,后台缓冲区指的是用于后台合成GUI的缓冲区,前台缓冲区指的是用于输出显示屏当前显示的GUI的缓冲区。Optionally, after the electronic device synthesizes the first GUI according to the at least one second layer, the electronic device may also cache the first GUI in a background buffer area corresponding to the target display screen. It can be understood that the back buffer refers to a buffer for synthesizing the GUI in the background, and the front buffer refers to a buffer for outputting the GUI currently displayed on the display screen.
需要说明的是,在本申请实施例中,为便于电子设备将缓冲区的内容输出至对应的显示屏显示,缓冲区与显示屏可以预先绑定。以双缓冲机制为例,若电子设备的显示屏包括A屏以及B屏,则A屏可以与缓冲区0、缓冲区1绑定,以用于为A屏上待显示的图层执行合成操作。B屏可以与缓冲区2、缓冲区3绑定,以便于为B屏上待显示的图层执行合成操作。It should be noted that, in the embodiment of the present application, in order to facilitate the electronic device to output the content of the buffer to a corresponding display screen for display, the buffer area and the display screen may be pre-bound. Taking the double buffering mechanism as an example, if the display screen of the electronic device includes screen A and screen B, then screen A can be bound to buffer 0 and buffer 1 to perform compositing operations for the layers to be displayed on screen A . Screen B can be bound to buffer 2 and buffer 3, so as to perform compositing operations for the layers to be displayed on screen B.
需要说明的是,本申请实施例并不限定缓冲区的数目,本申请实施例提供的技术方案对于多个缓冲区的情况同样适用。It should be noted that the embodiment of the present application does not limit the number of buffers, and the technical solution provided by the embodiment of the present application is also applicable to the case of multiple buffers.
S1004、电子设备控制目标显示屏显示第一GUI。S1004. The electronic device controls the target display screen to display the first GUI.
其中,对于需要更新GUI的显示屏来讲,电子设备才会将对应的合成后的GUI输出至该显示屏显示,即执行刷新操作。对于不需要更新GUI的显示屏来讲,电子设备不会执行刷新操作,该显示屏仍显示原有内容。Wherein, for a display screen that needs to update the GUI, the electronic device will output the corresponding synthesized GUI to the display screen for display, that is, perform a refresh operation. For a display screen that does not need to update the GUI, the electronic device does not perform a refresh operation, and the display screen still displays the original content.
具体的,电子设备可以将目标显示屏对应的后台缓冲区切换成目标显示屏对应的前台缓冲区,然后将该目标显示屏对应前台缓冲区中的第一GUI输出至目标显示屏显示。Specifically, the electronic device may switch the back buffer corresponding to the target display screen to the front buffer corresponding to the target display screen, and then output the first GUI in the front buffer corresponding to the target display screen to the target display screen for display.
可选的,在电子设备将目标显示屏对应的后台缓冲区切换成目标显示屏对应的前台缓冲区之前,电子设备还可以接收垂直同步信号,响应于该垂直同步信号,再将目标显示屏对应的后台缓冲区切换成该目标显示屏对应的前台缓冲区,刷新屏幕,将目标显示屏对应的前台缓冲区中的第一GUI输出至目标显示屏显示。Optionally, before the electronic device switches the background buffer corresponding to the target display to the foreground buffer corresponding to the target display, the electronic device may also receive a vertical synchronization signal, respond to the vertical synchronization signal, and then switch the corresponding The background buffer of the target display screen is switched to the front buffer corresponding to the target display screen, the screen is refreshed, and the first GUI in the front buffer area corresponding to the target display screen is output to the target display screen for display.
基于上述技术方案,电子设备根据图像数据生成图层之后,只有在根据该图层的布局信息确定需要更新显示屏显示的GUI之后,才会根据该显示屏待显示的图层合成GUI,即执行合成操作,然后通过该显示屏显示合成后的GUI,即执行刷新操作。对于显示的GUI不需要更新的显示屏来讲,电子设备不会对该显示屏待显示的图层执行合成操作,也不会执行刷新操作。由此,可以减少电子设备执行不必要的操作所带来的性能损失。Based on the above technical solution, after the electronic device generates a layer according to the image data, only after determining that the GUI displayed on the display screen needs to be updated according to the layout information of the layer, will the GUI be synthesized according to the layer to be displayed on the display screen, that is, execute Combining operations, and then displaying the synthesized GUI through the display screen, that is, performing a refresh operation. For a display screen whose displayed GUI does not need to be updated, the electronic device will neither perform a composition operation nor a refresh operation on the layers to be displayed on the display screen. Thus, the performance loss caused by unnecessary operations performed by the electronic device can be reduced.
还是以电子设备包括的显示屏为A屏以及B屏,A屏上第n帧图像到第n+k帧图像连续发生变化;而B屏上第n+k帧图像相对于第n帧图像发生变化,而第n帧图像到第n+k-1帧图像不发生变化,A屏与buffer0、buffer1绑定,B屏与buffer2、buffer3绑定,n的取值为1,k的取值为2为例。图15示出了采用本申请实施例提供的技术方案完成图像帧显示的过程示意图。其中,图15中各行的含义与图7所述的含义相同,电子设备完成A屏以及B屏显示第1帧的过程与图7所述的电子设备完成A屏以及B屏显示第1帧的过程也相同,此处不再赘述。Still, the display screens included in the electronic equipment are A screen and B screen, and the image from the nth frame to the n+k frame image on the A screen changes continuously; while the n+k frame image on the B screen changes with respect to the nth frame image. change, but the image from frame n to frame n+k-1 does not change, screen A is bound to buffer0 and buffer1, screen B is bound to buffer2 and buffer3, the value of n is 1, and the value of k is 2 as an example. FIG. 15 shows a schematic diagram of the process of completing image frame display by adopting the technical solution provided by the embodiment of the present application. Wherein, the meaning of each line in Fig. 15 is the same as that described in Fig. 7, the process of the electronic device completing the display of the first frame on the A screen and the B screen is the same as that of the electronic device described in Fig. 7 completing the display of the first frame on the A screen and the B screen The process is also the same and will not be repeated here.
对于第2帧,A屏上显示内容发生变化,变为“1”,B屏上显示内容未发生变化,显示内容仍为“0”。电子设备根据图像数据生成图层。对于A屏,电子设备根据A屏待显示图层执行合成操作,合成的结果为“1”,该合成结果存储在缓冲区1中。然后电子设备切换缓冲区0以及缓冲区1,即执行刷新操作,将缓冲区1中的数据输出至A屏显示,完成A屏上第2帧的显示(此时缓冲区1为前台缓冲区,缓冲区0为后台缓冲区)。由于B屏上显示内容未发生变化,因此电子设备不会对B屏上待显示的图层执行合成操作,也不会执行刷新操作,B屏仍显示“0”。For the second frame, the display content on the A screen changes to "1", and the display content on the B screen does not change, and the display content is still "0". The electronic device generates layers from the image data. For screen A, the electronic device executes a composite operation according to the layer to be displayed on screen A, and the composite result is “1”, which is stored in buffer 1 . Then the electronic device switches between buffer 0 and buffer 1, that is, executes a refresh operation, outputs the data in buffer 1 to A screen display, and completes the display of the second frame on A screen (at this time, buffer 1 is the front buffer, Buffer 0 is the back buffer). Since the displayed content on the B screen has not changed, the electronic device will not execute the compositing operation on the layer to be displayed on the B screen, nor will it perform the refresh operation, and the B screen still displays "0".
后续,对于A屏以及B屏,电子设备完成第3帧显示的过程与完成A屏上第2帧显示的过程类似,此处不再详细赘述。另外,对于B屏,如果第3帧显示内容仍旧未发生变化,还为“0”,电子设备同样不会执行合成操作以及刷新操作。Subsequently, for screen A and screen B, the process of the electronic device to complete the display of the third frame is similar to the process of completing the display of the second frame on screen A, and will not be described in detail here. In addition, for screen B, if the display content of the third frame remains unchanged and is still "0", the electronic device will also not execute the composite operation and refresh operation.
从图13可知,对于A屏,第1帧到第3帧显示内容连续发生变化,屏幕上的显示内容发生一次变化,电子设备执行一次合成操作以及一次刷新屏幕的操作。对于B屏,第1帧到第3帧显示内容间隔1帧发生一次变化,在显示内容不发生变化时(例如:第2帧),电子设备不执行合成操作,也不执行屏幕刷新操作。可知,对于A屏以及B屏,电子设备执行合成操作的频率以及刷新操作的频率与显示内容实际变化频率均相同。可见,本申请实施例提供的技术方案减少了电子设备执行不必要的操作所带来的性能损失。It can be seen from FIG. 13 that, for screen A, the display content of the first frame to the third frame changes continuously, and the display content on the screen changes once, and the electronic device performs a composite operation and a screen refresh operation. For the B screen, the display content of the first frame to the third frame changes once every frame, and when the display content does not change (for example: the second frame), the electronic device does not perform the synthesis operation, nor does it perform the screen refresh operation. It can be known that, for screen A and screen B, the frequency of the electronic device performing the composition operation and the frequency of the refresh operation is the same as the frequency of the actual change of the displayed content. It can be seen that the technical solutions provided by the embodiments of the present application reduce the performance loss caused by unnecessary operations performed by the electronic device.
上述示例是以n的取值为1,k的取值为2进行介绍的,同样的,在n、k为其他取值时,本申请实施例提供的技术方案同样可以减少电子设备执行不必要的操作所带来的性能损失。The above example is introduced with the value of n being 1 and the value of k being 2. Similarly, when n and k are other values, the technical solution provided by the embodiment of the present application can also reduce unnecessary execution of electronic devices. The performance loss caused by the operation.
上述主要是从方法的角度对本申请实施例提供的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。结合本申请中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同的方法来实现所描述的功能,但是这种实现不应认为超过本申请实施例的技术方案的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present application from the perspective of methods. It can be understood that, in order to realize the above functions, the electronic device includes hardware structures and/or software modules corresponding to each function. Combining the units and algorithm steps of each example described in the embodiments disclosed in this application, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer-driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the technical solutions of the embodiments of the present application.
本申请是实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the electronic device into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
如图16所示,为本申请实施例提供的一种电子设备的结构示意图,该电子设备1600可用于实现以上各个方法实施例中记载的方法。示例性的,该电子设备1600具体可以包括:处理单元1601、显示单元1602。As shown in FIG. 16 , it is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 1600 can be used to implement the methods described in the above method embodiments. Exemplarily, the electronic device 1600 may specifically include: a processing unit 1601 and a display unit 1602 .
其中,处理单元1601用于执行支持电子设备1600执行图10中的步骤S1001至S1003。和/或,处理单元1601还用于支持电子设备1600执行本申请实施例中电子设备执行的其他步骤。Wherein, the processing unit 1601 is configured to support the electronic device 1600 to execute steps S1001 to S1003 in FIG. 10 . And/or, the processing unit 1601 is further configured to support the electronic device 1600 to perform other steps performed by the electronic device in the embodiment of the present application.
显示单元1602用于执行支持电子设备1600执行图10中的步骤S1004。和/或,显示单元1602还用于支持电子设备1600执行本申请实施例中电子设备执行的其他步骤。The display unit 1602 is configured to support the electronic device 1600 to execute step S1004 in FIG. 10 . And/or, the display unit 1602 is further configured to support the electronic device 1600 to perform other steps performed by the electronic device in the embodiment of the present application.
可选的,图16所示的电子设备1600还可以包括通信单元1603,该通信单元1603,用于支持电子设备1600执行本申请实施例中电子设备与其他电子设备之间通信的步骤。Optionally, the electronic device 1600 shown in FIG. 16 may further include a communication unit 1603, configured to support the electronic device 1600 to perform the steps of communication between the electronic device and other electronic devices in the embodiment of the present application.
可选的,图16所示的电子设备1600还可以包括存储单元(图16中未示出),该存储单元存储有程序或指令。当处理单元1601执行该程序或指令时,使得图16所示的电子设备1600可以执行图10所示的方法。Optionally, the electronic device 1600 shown in FIG. 16 may further include a storage unit (not shown in FIG. 16 ), where programs or instructions are stored in the storage unit. When the processing unit 1601 executes the program or instruction, the electronic device 1600 shown in FIG. 16 can execute the method shown in FIG. 10 .
图16所示的电子设备1600的技术效果可以参考图10所示的方法的技术效果,此处不再赘述。图16所示的电子设备1600中涉及的处理单元1601可以由处理器或处理器相关电路组件实现,可以为处理器或处理模块。通信单元1603可以由收发器或收发器相关电路组件实现,可以为收发器或收发模块。显示单元1602可以由显示屏相关组件实现。For the technical effect of the electronic device 1600 shown in FIG. 16 , reference may be made to the technical effect of the method shown in FIG. 10 , which will not be repeated here. The processing unit 1601 involved in the electronic device 1600 shown in FIG. 16 may be implemented by a processor or processor-related circuit components, and may be a processor or a processing module. The communication unit 1603 may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or a transceiver module. The display unit 1602 may be implemented by display screen related components.
本申请实施例还提供一种芯片系统,如图17所示,该芯片系统包括至少一个处理器1701和至少一个接口电路1702。处理器1701和接口电路1702可通过线路互联。例如,接口电路1702可用于从其它装置接收信号。又例如,接口电路1702可用于向其它装置(例如处理器1701)发送信号。示例性的,接口电路1702可读取存储器中存储的指令,并将该指令发送给处理器1701。当所述指令被处理器1701执行时,可使得电子设备执行上述实施例中的电子设备执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。The embodiment of the present application also provides a chip system, as shown in FIG. 17 , the chip system includes at least one processor 1701 and at least one interface circuit 1702 . The processor 1701 and the interface circuit 1702 can be interconnected through wires. For example, interface circuit 1702 may be used to receive signals from other devices. As another example, the interface circuit 1702 may be used to send signals to other devices (such as the processor 1701). Exemplarily, the interface circuit 1702 can read instructions stored in the memory, and send the instructions to the processor 1701 . When the instructions are executed by the processor 1701, the electronic device may be made to perform various steps performed by the electronic device in the foregoing embodiments. Of course, the chip system may also include other discrete devices, which is not specifically limited in this embodiment of the present application.
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。Optionally, there may be one or more processors in the chip system. The processor can be realized by hardware or by software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented by software, the processor may be a general-purpose processor implemented by reading software codes stored in a memory.
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请并不限定。示例性的,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型,以及存储器与处理器的设置方式不作具体限定。Optionally, there may be one or more memories in the chip system. The memory can be integrated with the processor, or can be set separately from the processor, which is not limited in this application. Exemplarily, the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be respectively arranged on different chips. The setting method of the processor is not specifically limited.
示例性的,该芯片系统可以是现场可编程门阵列(field programmable gatearray,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processorunit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。Exemplarily, the chip system may be a field programmable gate array (field programmable gate array, FPGA), an application specific integrated circuit (ASIC), or a system chip (system on chip, SoC), or It can be a central processor unit (CPU), a network processor (network processor, NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit) , MCU), and may also be a programmable controller (programmable logic device, PLD) or other integrated chips.
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that each step in the foregoing method embodiments may be implemented by an integrated logic circuit of hardware in a processor or instructions in the form of software. The method steps disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述方法实施例所述的方法。The embodiment of the present application also provides a computer storage medium, the computer storage medium stores computer instructions, and when the computer instructions are run on the electronic device, the electronic device is made to execute the method described in the foregoing method embodiments.
本申请实施例提供一种计算机程序产品,该计算机程序产品包括:计算机程序或指令,当计算机程序或指令在计算机上运行时,使得该计算机执行上述方法实施例所述的方法。An embodiment of the present application provides a computer program product, and the computer program product includes: a computer program or an instruction. When the computer program or instruction is run on a computer, the computer is made to execute the method described in the above method embodiments.
另外,本申请实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使装置执行上述各方法实施例中的方法。In addition, the embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein, the memory is used to store instructions executed by a computer, and when the device is running, the processing The device can execute the computer-executed instructions stored in the memory, so that the device executes the methods in the foregoing method embodiments.
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the corresponding method provided above The beneficial effects in the method will not be repeated here.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned by different Completion of functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。各实施例在不冲突的情况下可以相互结合或相互参考。以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The various embodiments may be combined or referred to each other without conflict. The device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated. to another device, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If an integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, and other media capable of storing program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above content is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application, and should covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (18)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210192687.8A CN116700850A (en) | 2022-02-28 | 2022-02-28 | Display method and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210192687.8A CN116700850A (en) | 2022-02-28 | 2022-02-28 | Display method and electronic device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116700850A true CN116700850A (en) | 2023-09-05 |
Family
ID=87834473
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210192687.8A Pending CN116700850A (en) | 2022-02-28 | 2022-02-28 | Display method and electronic device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116700850A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118626302A (en) * | 2024-08-12 | 2024-09-10 | 智马达(浙江)软件科技有限公司 | Method, system, device and medium for positioning vehicle computer application layer display errors |
-
2022
- 2022-02-28 CN CN202210192687.8A patent/CN116700850A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118626302A (en) * | 2024-08-12 | 2024-09-10 | 智马达(浙江)软件科技有限公司 | Method, system, device and medium for positioning vehicle computer application layer display errors |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11069106B1 (en) | Dynamic mesh generation to minimize fillrate utilization | |
| US9489165B2 (en) | System and method for virtual displays | |
| US10031712B2 (en) | System and method for display mirroring | |
| CN106062705B (en) | Cross-platform rendering engine | |
| EP2756481B1 (en) | System and method for layering using tile-based renderers | |
| WO2021008427A1 (en) | Image synthesis method and apparatus, electronic device, and storage medium | |
| EP3726357B1 (en) | Electronic apparatus and controlling method thereof | |
| WO2018126594A1 (en) | Display switching method for terminal, and terminal | |
| WO2023179501A1 (en) | Interface display method and electronic device | |
| CN116136784A (en) | Data processing method, device, storage medium and program product | |
| WO2018000372A1 (en) | Picture display method and terminal | |
| CN105190701A (en) | Primitive-based composition | |
| WO2020215207A1 (en) | Method and device for processing layers | |
| CN116149765A (en) | Method for determining refresh mode of ink screen, electronic device and storage medium | |
| CN116700850A (en) | Display method and electronic device | |
| JP2010175638A (en) | Display device and method for display in display device | |
| US20190108037A1 (en) | Pro-Active GPU Hardware Bootup | |
| US20060187239A1 (en) | System and method for improving visual appearance of efficient rotation algorithm | |
| WO2025260349A1 (en) | Display screen refreshing method and electronic device | |
| CN121096240A (en) | Display refresh methods and electronic devices | |
| CN118541660A (en) | Sequential flexible display shape resolution | |
| CN118823189A (en) | Handwriting erasing method, display device, storage medium and program product | |
| CN121096238A (en) | Display refresh methods and electronic devices | |
| CN118377561A (en) | Display method, device, system, and electronic device | |
| CN119941964A (en) | Image rendering method and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |