US 12,315,030 B2
Rendering method and apparatus
Yuan Qin, Shenzhen (CN)
Assigned to Honor Device Co., Ltd., Shenzhen (CN)
Appl. No. 18/246,228
Filed by Honor Device Co., Ltd., Shenzhen (CN)
PCT Filed Aug. 25, 2022, PCT No. PCT/CN2022/114771
§ 371(c)(1), (2) Date Mar. 22, 2023,
PCT Pub. No. WO2023/087827, PCT Pub. Date May 25, 2023.
Claims priority of application No. 202111364418.7 (CN), filed on Nov. 17, 2021; and application No. 202111554611.7 (CN), filed on Dec. 17, 2021.
Prior Publication US 2024/0311948 A1, Sep. 19, 2024
Int. Cl. G06T 1/20 (2006.01)
CPC G06T 1/20 (2013.01) 19 Claims
OG exemplary drawing
 
1. A rendering method, wherein the method is applied to an electronic device, the electronic device runs an application, the electronic device comprises a first processor and a second processor, and the method comprises:
receiving, by the first processor, a rendering command delivered by the application, wherein the rendering command is used to instruct the second processor to render a first image based on a first resolution;
sending, by the first processor, a rendering instruction to the second processor, wherein the rendering instruction is used to instruct the second processor to render the first image;
generating, by the second processor, image data of the first image with a second resolution based on the rendering instruction, wherein the second resolution is not greater than the first resolution;
writing, by the second processor, the image data of the first image with the second resolution into a first memory;
reading, by the second processor, image data of the first image with a third resolution from the first memory, wherein the third resolution is greater than the second resolution; and
generating, by the second processor, the first image based on the image data of the first image with the third resolution;
wherein if a rendering manner of the application is forward rendering, the rendering instruction corresponds to a first framebuffer, and a quantity of drawing instructions executed on the first framebuffer is greater than a preset threshold; and
if the rendering manner of the application is deferred rendering, the rendering instruction corresponds to a framebuffer other than a last framebuffer in all framebuffers delivered by the application.