The present application relates to the technical field of
image processing. Disclosed are an
image processing method, a readable storage medium, an electronic device and a program product. In the method, a rendering thread of a first application, which is required to display first image data in a first
image frame and currently runs on an electronic device, can send first information to a
compositing process, which is used for
compositing a display interface, in the electronic device before the rendering of the first image data is completed, for example, before the rendering thread finishes executing an instruction in a "beginDraw" stage. After receiving the first information sent by the first application, and in response to the first information, the
compositing process can execute an instruction in a pre-compositing
preparation stage, and composite and display the first
image frame after the rendering of all the display content corresponding to the first
image frame is completed. The compositing process starts to execute the instruction in the pre-compositing
preparation stage even before the rendering of the first image data is completed, and therefore the time consumed by the electronic device to draw, render and composite an image frame can be reduced.