| CPC G06T 1/20 (2013.01) [H04N 7/01 (2013.01); H04N 19/42 (2014.11); H04L 65/65 (2022.05)] | 20 Claims |

|
1. A method, applied to a first electronic device, wherein the first electronic device comprises a graphics processing unit (GPU) and a hardware composer (HWC), and the method comprises:
when the first electronic device is in a casting state, determining whether a to-be-synthesized layer corresponding to multimedia information to be cast and displayed comprises a video security layer;
determining that the to-be-synthesized layer does not comprise the video security layer;
separately sending, from SurfaceFlinger, the to-be-synthesized layer to the GPU and the HWC in response to determining that the to-be-synthesized layer does not comprise the video security layer;
simultaneously synthesizing the same to-be-synthesized layer in parallel by using the GPU and the HWC, to obtain a first layer synthesized by the GPU and a second layer synthesized by the HWC;
sending the first layer synthesized by the GPU to a second electronic device, to display the multimedia information corresponding to the first layer on the second electronic device; and
displaying the multimedia information corresponding to the second layer synthesized by the HWC.
|