Task processing method and apparatus, electronic device, and storage medium

By introducing a combination of indirect interaction between the first application interface and the graphics processor and direct interaction between the second application interface in the browser, the performance disadvantage of web graphics libraries in computationally intensive tasks is solved, and efficient texture data rendering and image display are achieved.

CN123157341APending Publication Date: 2026-11-24BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510669292.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Web-based graphics libraries exhibit performance disadvantages when handling computationally intensive tasks, failing to meet real-time and high-performance requirements, especially when processing massive amounts of data and complex calculations, resulting in slow processing speeds and response delays.

Method used

By introducing a first application programming interface (API) that interacts indirectly with the graphics processor and a second API that interacts directly with the graphics processor in the browser, tasks are assigned to graphics rendering and computation acceleration, respectively, to optimize resource utilization.

Benefits of technology

It achieves high-performance texture data rendering, significantly shortens processing time, improves running efficiency, reduces waiting time, and can run in various browser environments without the need to install plugins or software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157341A_ABST
    Figure CN123157341A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a task processing method and device, electronic equipment and storage medium. The method comprises: in response to a trigger operation of a first task, obtaining first texture data of the first task through a first application interface, the first application interface being an application programming interface for supporting indirect interaction with a graphics processor for graphics rendering on a browser; performing data processing on the first texture data through the computing power of a second application interface to obtain second texture data, the second application interface being an application programming interface for supporting direct interaction with the graphics processor for graphics rendering on the browser, and the computing power of the second application interface being higher than that of the first application interface; obtaining the second texture data returned by the second application interface through the first application interface, and performing image display through the first application interface according to the second texture data. The present application can complete the rendering and display of texture data with high performance after the task is triggered.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present disclosure relate to the technical field of data processing, and particularly relate to a task processing method and device, an electronic device, and a storage medium. BACKGROUND

[0002] A web graphics library supports creating and rendering complex graphics directly in a web page without any plug-ins. The web graphics library can fully call the hardware acceleration capability of a GPU to achieve efficient graphics rendering. However, when facing many computing-intensive tasks, the web graphics library exposes obvious performance disadvantages. Due to the cooperative limitation of the architecture of the web graphics library and the web environment, it is difficult to efficiently process tasks of massive data and complex operations, resulting in slow operation speed and response delay, which cannot meet the strict requirements of tasks on real-time performance and high performance. SUMMARY

[0003] The present disclosure provides a task processing method and device, an electronic device, and a storage medium to achieve high-performance rendering of texture data and image display after task triggering.

[0004] In a first aspect, the embodiments of the present disclosure provide a task processing method, and the method comprises the following steps.

[0005] In response to a triggering operation of a first task, first texture data of the first task is acquired through a first application interface, the first application interface being an application programming interface for supporting indirect interaction with a graphics processor for graphics rendering on a browser;

[0006] According to the first texture data, second texture data is obtained through data processing by a computing capability of a second application interface, the second application interface being an application programming interface for supporting direct interaction with the graphics processor for graphics rendering on the browser, and the computing performance of the second application interface being higher than that of the first application interface;

[0007] The second texture data returned by the second application interface is acquired through the first application interface, and image display is performed through the first application interface according to the second texture data.

[0008] In a second aspect, the embodiments of the present disclosure further provide a task processing device, and the device comprises the following.

[0009] The acquisition module is configured to acquire, in response to a triggering operation of a first task, first texture data of the first task through a first application interface, the first application interface being an application programming interface for supporting indirect interaction with a graphics processor for graphics rendering on a browser;

[0010] The processing module is configured to perform data processing on the first texture data to obtain second texture data by using the computing capability of a second application interface, the second application interface being an application programming interface for supporting direct interaction with a graphics processor for graphics rendering on the browser, and the computing performance of the second application interface being higher than that of the first application interface.

[0011] The display module is configured to obtain the second texture data returned by the second application interface through the first application interface, and display an image according to the second texture data through the first application interface.

[0012] In a third aspect, the embodiments of the present disclosure further provide an electronic device, and the electronic device comprises:

[0013] one or more processors;

[0014] a storage device configured to store one or more programs,

[0015] When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the task processing method in any of the embodiments of the present disclosure.

[0016] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium containing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are configured to perform the task processing method in any of the embodiments of the present disclosure.

[0017] The technical scheme of the embodiments of the present disclosure can obtain the first texture data of the first task through the first application interface in the case of receiving the triggering operation of the first task. The first application interface is an application programming interface for supporting indirect interaction with a graphics processor for graphics rendering on a browser. The advantages of the first application interface in graphics rendering and display are fully utilized. The processed data can be efficiently displayed on a webpage. The compatibility of the first application interface enables the operation in various browser environments without the need for additional installation of plug-ins or software. Meanwhile, the second texture data is obtained by processing data through the computing capability of the second application interface according to the first texture data. The second application interface is an application programming interface for supporting direct interaction with a graphics processor for graphics rendering on a browser. The computing performance of the second application interface is higher than that of the first application interface. The texture data is processed by using the second application interface, so that the complex computing task can be completed faster. When high-resolution texture data or image processing algorithms requiring a large amount of computation are processed, the processing time can be significantly shortened, the overall operation efficiency is improved, and the waiting time is reduced. The first application interface focuses on graphics rendering and display, and the second application interface focuses on computing acceleration. By reasonably allocating the tasks of the first application interface and the second application interface, the resource utilization can be optimized. Not only the high-performance computing capability of the graphics processor can be utilized, but also the graphics rendering capability of the graphics processor can be reasonably utilized in the display stage of data. The cooperation of the first application interface and the second application interface realizes the complementation of functions, can give full play to the advantages of both, and realizes more powerful and efficient texture data rendering functions.

[0018] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0019] The above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals refer to the same or similar elements. It should be understood that the drawings are schematic, and the original and elements are not necessarily drawn according to the scale.

[0020] Figure 1 is a task processing method flowchart provided by an embodiment of the present disclosure;

[0021] Figure 2 is an architecture diagram in task processing provided by an embodiment of the present disclosure;

[0022] Figure 3 is a task processing device structure diagram provided by an embodiment of the present disclosure;

[0023] Figure 4 FIG. 1 is a structural schematic diagram of an electronic device implementing a task processing method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described in more detail with reference to the drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be interpreted as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be thorough and complete, and fully convey the scope of the present disclosure to those skilled in the art.

[0025] It should be understood that each step recited in the method embodiments of the present disclosure can be executed in different order and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0026] The term "comprising" and variations thereof as used herein are used inclusively, i.e., "comprising but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Related definitions are given throughout the description.

[0027] It should be noted that the terms "first", "second", and the like in the present disclosure are merely used to distinguish different devices, modules or units, and do not imply the order or interdependence of the functions performed by these devices, modules or units.

[0028] It should be noted that the adjectives "one", "more" in the present disclosure are illustrative rather than limiting, and those skilled in the art should understand that "one or more" should be understood unless otherwise explicitly stated in the context.

[0029] The names of the messages or information exchanged between the devices in the embodiments of the present disclosure are merely used for illustrative purposes, and are not intended to limit the scope of the messages or information.

[0030] Figure 1This is a flowchart illustrating a task processing method provided in an embodiment of the present disclosure. This embodiment is applicable to situations where a task of rendering texture data is received, and the texture data can be rendered and displayed with high performance. The method can be executed by a task processing device, which can be implemented in software and / or hardware, or optionally by an electronic device, such as a mobile terminal, a PC, or a server.

[0031] like Figure 1 As shown, the task processing method of this disclosure embodiment may include the following process:

[0032] S110. In response to the triggering operation of the first task, the first texture data of the first task is obtained through the first application interface. The first application interface is an application programming interface for supporting indirect interaction with the graphics processor for graphics rendering on a browser.

[0033] Texture data is used to achieve realistic graphics rendering, giving 3D models rich details and appearance features. Texture data can be a dataset storing image information, which can be static images or patterns generated in real time by the program. During graphics rendering, texture data is mapped onto the surface of the 3D model to make the 3D model appear more realistic and vivid.

[0034] The applications of texture data include, but are not limited to, the following: material simulation, environment mapping, lighting effects, and animation effects. Material simulation adds different material textures to 3D models, such as metal, wood, and glass, to make the models look more realistic. Environment mapping uses texture data to simulate the reflection and refraction effects of the environment, enhancing the realism of the scene. Lighting effects combine texture data and lighting models to achieve complex lighting effects, such as shadows and highlights. Animation effects are achieved by switching between different texture data or dynamically modifying textures to create texture animation effects, such as flames, water flow, and smoke.

[0035] See Figure 2The first application programming interface (API) is used to support indirect interaction between the browser and the graphics processor (GPU) via embedded system graphics programming instructions for graphics rendering. The first API can be a set of application programming interfaces for 2D and 3D graphics rendering on web pages. The first API allows the use of programming languages ​​to invoke the functions of the underlying GPU, creating interactive graphics and animations on the browser. The first API can achieve high-performance graphics rendering directly on the browser without relying on plugins. The first API does not directly operate the GPU, but rather achieves communication and instruction transmission with the GPU through intermediate mechanisms or layers. The first API focuses on providing basic graphics drawing, texture mapping, and lighting models during the graphics rendering process, supporting 2D and 3D graphics rendering, but its support for some advanced features (such as real-time shadows, global illumination, and physical simulation) is relatively limited.

[0036] Optionally, the graphics programming instructions for the embedded system can be graphics programming instructions designed for embedded systems and mobile devices, which abstract and encapsulate the operation of the GPU. Optionally, the first application interface can be an application programming interface (API) provided by a web graphics library, used to implement 2D and 3D graphics rendering processes in a browser. This allows complex 2D and 3D graphics to be created and rendered directly in the browser using JavaScript and HTML5 without any plugins. The web graphics library utilizes GPU hardware acceleration to achieve efficient graphics rendering and provide a smooth 3D experience.

[0037] S120. Based on the first texture data, the second texture data is obtained by processing the data through the computing power of the second application interface. The second application interface is an application programming interface for supporting direct interaction with the graphics processor for graphics rendering on the browser, and the computing performance of the second application interface is higher than that of the first application interface.

[0038] See Figure 2 When the first application interface runs, the browser converts the embedded system's graphics programming instructions into actual graphics, and then sends these instructions to the graphics processor for execution via the graphics processor driver. While the first application interface utilizes the parallel computing capabilities of the graphics processor for graphics rendering, its reliance on embedded system graphics programming instructions presents certain compatibility and performance limitations. Performance bottlenecks may arise when handling complex graphics scenes, large-scale geometry, and high-resolution textures.

[0039] For this reason, see Figure 2When processing the first texture data, a second application interface (API) is introduced. This API can directly interact with the graphics processing unit (GPU), better leveraging its parallel computing capabilities. By supporting direct interaction with the GPU, the second API bypasses some of the intermediate layers and compatibility handling required by the first API, reducing unnecessary overhead. This results in higher parallel computing performance for the second API compared to the first, enabling the GPU to process rendering tasks more efficiently. The second API employs an asynchronous programming model and command buffering mechanism. The CPU can prepare a series of rendering commands in the background and then submit them to the GPU for execution all at once, avoiding frequent synchronization waits between the CPU and GPU. This reduces synchronization overhead between the CPU and GPU, significantly improving rendering performance.

[0040] Optionally, see Figure 2 The second application interface (API) provides smoother rendering effects when handling complex scenes and large-scale data computation tasks, supporting more complex graphics effects, more advanced rendering techniques, and large-scale parallel computing tasks. The API introduces computation shaders, allowing general-purpose computational tasks to be performed on the graphics processor, such as, but not limited to, at least one of the following computational tasks: physical simulation, data processing, and image filtering. Through computation shaders, complex computational tasks that originally needed to be performed on the CPU can be transferred to the GPU for parallel processing, significantly improving computational performance. The API also supports multi-threaded rendering, allowing multiple threads to perform different rendering tasks simultaneously, such as processing the rendering of multiple scenes or multiple objects at the same time, further improving rendering performance and efficiency.

[0041] As an optional but not limited implementation, the primary task is to perform special effects processing on the initial texture data input and displayed in the browser. Texture data special effects processing can involve manipulating, modifying, and enhancing the texture data to produce specific visual effects or meet specific visual requirements. Texture data can refer to image data used to describe the appearance characteristics of an object's surface, such as color, pattern, roughness, etc., and can be applied to various digital media such as 2D images, 3D models, videos, and games. Texture data is used to add surface details and realism to 3D models.

[0042] In one optional example, the types of special effects processing for texture data can include at least one of the following: visual enhancement effects and animation effects. Visual enhancement effects can include adding lighting effects to make the texture more three-dimensional; visual enhancement effects can include detail enhancement, specifically using algorithms such as sharpening and edge detection to highlight the details of the texture, making the surface texture of the object more clearly visible; visual enhancement effects can include texture compositing, specifically combining or merging multiple different textures to create new texture effects; visual enhancement effects can include simulating lighting from different angles to create changes in brightness and darkness on the texture surface, enhancing the sense of depth; visual enhancement effects can include adding color adjustments, changing the color attributes of the texture, such as hue, saturation, and brightness, to create different atmospheres and styles. Animation effects can be designing animation effects for the texture data, such as texture expansion, contraction, and rotation animations; animation effects can also be setting fade-in and fade-out animations for the texture, presenting the texture data with a soft fade-in effect when switching pages, improving the smoothness of page transitions.

[0043] In another optional example, the types of effects processing for texture data can include at least one of the following: texture compression and texture resolution adaptation. Texture compression compresses texture data to reduce its storage space and bandwidth usage, improving data transmission and processing efficiency. Texture resolution adaptation automatically adjusts the texture resolution based on different device performance and requirements. On lower-performance devices, the texture resolution can be reduced to ensure smooth gameplay or application operation; while on higher-performance devices, higher-resolution textures can be used.

[0044] The triggering operation for the first task can be an operation that triggers at least one of several special effects set for the first task in the browser. Specifically, the triggering operation for the first task can be an operation that triggers an effect icon displayed in the browser via at least one of the following display methods: drop-down menu, radio button, etc. In response to the triggering operation of the first task, the first application interface detects the special effect processing method to be applied to the first texture data and sends the special effect processing method to be applied to the first texture data to the second application interface. Then, based on the first texture data, the second application interface performs data processing to obtain the second texture data.

[0045] As an optional but not limited implementation, see [link to relevant documentation]. Figure 2 Based on the first texture data, the second texture data is obtained by processing the data through the computing power of the second application interface, including but not limited to the following steps:

[0046] Based on the first texture data, the third texture data is transmitted to the second application interface through the first application interface; the computing power of the first processing logic is invoked through the second application interface to process the third texture data to obtain the second texture data.

[0047] The second application interface has a significant performance advantage over the first application interface in many computationally intensive tasks. However, in real-world scenarios, configuring and using the second application interface across the entire chain involves many upstream and downstream components, which means that migrating the configuration and using the second application interface across the entire chain requires significant modifications.

[0048] Therefore, the rendering pipeline based on the first application interface can be maintained, with the second application interface used to partially replace the time-consuming algorithm part. Considering that the first and second application interfaces are two completely different application interfaces, the third texture data needs to be sent to the second application interface based on the first texture data obtained from the first application interface. The first texture data and the second texture data should be kept to have the same effect when rendering the image, or the similarity of the rendering effect should be greater than the preset similarity. In this way, the data required for image rendering by the first application interface can be transferred to the second application interface, which makes it convenient to call the computing power of the second application interface to process the third texture data to obtain the second texture data, thereby improving the graphics rendering performance.

[0049] The first processing logic can be predefined computational logic or algorithm code used to process texture data. The second application interface is an application programming interface provided by an application or database, which acts as a bridge between the caller and the processing logic, allowing the computational capabilities of the first processing logic to be used by calling the second application interface. Optionally, in the field of graphics processing, the first processing logic can be a shader, and can include at least one of specific mathematical operations or image processing algorithms for performing at least one operation on the texture data, such as color adjustment, filtering, or transformation. When the second application interface obtains the third texture data, the first processing logic can be called through the second application interface to process the third texture data, obtaining the second texture data for graphics rendering.

[0050] The third texture data can be obtained through the second application interface when transferring texture data from the first application interface to the second application interface based on the first texture data. In the field of graphics processing, texture data is image data used to add details and colors to the surface of a 3D model, and can be a 2D image, a 3D volume texture, etc. The second texture data can be texture data obtained after processing by the first processing logic. The second texture data is the same as or has a greater than preset similarity to the third texture data in terms of color, sharpness, and shape, so as to ensure that the first texture data and the second texture data have the same effect when rendering the image, or the similarity of the rendering effect is greater than the preset effect similarity.

[0051] Optionally, invoking the first processing logic to process the third texture data may include, but is not limited to, performing at least one of the following operations: color adjustment of the third texture data, filtering of the third texture data, and transformation of the third texture data. Color adjustment may be used to change at least one of the texture's brightness, contrast, and saturation; filtering may include at least one of Gaussian filtering and median filtering for smoothing the texture or removing noise; transformation may include at least one of rotating, scaling, and translating the texture. After processing the third texture data, the generated second texture data can be further used for rendering graphics, saving as a file, or as input for other processing.

[0052] For example, in a browser application, if it is desired to perform real-time lighting effect processing on texture data, the first processing logic can be a vertex shader and fragment shader written in GLSL to simulate lighting effects; the second application interface can be an application programming interface (API) provided by a web graphics processor to load and execute the shader program; the first processing logic is called through the second application interface to process the third texture data, and finally a second texture data with lighting effects is obtained, and the second texture is used for image rendering.

[0053] As an optional but not limited implementation, see [link to relevant documentation]. Figure 2 Based on the first texture data, the third texture data is transmitted from the first application interface to the second application interface, including but not limited to the following steps:

[0054] The first application interface calls the second processing logic to perform texture drawing on the first texture data to obtain the first image data; the second application interface calls the third processing logic to copy the first image data into the texture object of the second application interface to obtain the third texture data.

[0055] Since the first application interface and the second application interface are two completely different application programming interfaces (APIs), the browser does not directly provide an interface for exchanging texture data between them. Therefore, a second processing logic is configured on the first application interface side. This second processing logic can be predefined, such as a piece of code, an algorithm, or a set of rules. The second processing logic can be used to perform texture rendering on the texture data on the first application interface side to obtain image data. This second processing logic can be encapsulated in a function, class, or module. To complete the exchange of texture data from the first application interface to the second application interface, the second processing logic can be called through the first application interface to perform texture rendering and obtain the first image data.

[0056] Optionally, the second application interface can create a texture object. When the first application interface obtains the first image data, the second application interface can call the third processing logic to copy the first image data from the first application interface into the texture object of the second application interface. The texture object is essentially an encapsulation of image data. This image data can be static images loaded from files, such as wood grain, stone grain, or fabric textures, or patterns generated in real-time by the program, such as noise textures or gradient textures. During graphics rendering, the texture object is mapped onto the surface of the 3D model, thus giving the model rich details and appearance. In graphics processing, the texture object is an entity used to store and manage texture data. The copying process may involve memory operations, copying the first image data from one memory area to the memory area where the texture object resides, resulting in updated third texture data. Optionally, the third processing logic can be a function or code logic in the field of graphics programming used to copy external image data to a texture object.

[0057] As an optional but not limited implementation, see [link to relevant documentation]. Figure 2 The first image data is obtained by rendering the first texture data through the second processing logic, including but not limited to the following steps:

[0058] The first texture data is transmitted to the canvas object associated with the first application interface through the second processing logic; the first image data is obtained by texture drawing on the canvas object associated with the first application interface through the second processing logic.

[0059] The second processing logic can be a predefined logic for processing texture data, which can be a piece of code, an algorithm, or a set of functions. This second processing logic is used to transfer the texture data from the first application interface to the canvas object of the first application interface and to perform drawing operations on the canvas object. The first application interface is used to interact with the outside world and can be associated with a canvas object, allowing manipulation of the canvas by calling interface methods. The canvas object is a two-dimensional drawing area, and the first application interface can perform various graphic drawing operations on the canvas object of the first application interface by calling the second processing logic. The implementation of the canvas object may differ in different programming environments, but all provide a series of methods for drawing, such as drawing lines, rectangles, and circles. The first image data can be the image data obtained after drawing the first texture data on the canvas object of the first application interface.

[0060] The second processing logic transmits the first texture data to the canvas object associated with the first application interface. During this process, the second processing logic ensures that the texture data is transmitted to the canvas object in the correct format and manner. Specifically, this involves data decoding and conversion to ensure the canvas object can correctly recognize and process the data. On the canvas object associated with the first application interface, the second processing logic performs texture drawing on the first texture data, including but not limited to setting parameters such as drawing position, size, and rotation angle, and selecting appropriate drawing methods (such as tiling or stretching). Finally, the first image data is obtained after the drawing operation on the canvas object associated with the first application interface.

[0061] S130. Obtain the second texture data returned by the second application interface through the first application interface, and display the image through the first application interface based on the second texture data.

[0062] See Figure 2 The first application interface initiates a data request to the second application interface. This data request typically includes necessary parameters, such as the data type and processing requirements, so that the second application interface can generate or process the required second texture data. Upon receiving the data request, the second application interface processes the texture data according to the parameters in the request and returns the generated second texture data to the first application interface. The first application interface then performs necessary conversions and processing on the second texture data to make it suitable for image rendering, including data format conversion and resolution adjustment. Finally, the first application interface can convert the second texture data into a visualized image and render and display it on a suitable display device (such as a screen or projector).

[0063] As an optional but not limited implementation, see [link to relevant documentation]. Figure 2 The process of obtaining the second texture data returned by the second application interface through the first application interface includes, but is not limited to, the following steps:

[0064] The second application interface calls the fourth processing logic to perform texture drawing on the second texture data to obtain the second image data; the first application interface calls the fifth processing logic to copy the second image data into the texture object of the first application interface to obtain the second texture data.

[0065] Since the first and second application interfaces are two distinct application programming interfaces (APIs), the browser does not directly provide an interface for exchanging texture data between them. To return the second texture data generated by the second application interface to the first application interface for invocation, a fourth processing logic can be configured on the second application interface side. This fourth processing logic can be predefined, such as a piece of code, an algorithm, or a set of rules. It can be used to perform texture rendering on the texture data on the second application interface side to obtain image data. This fourth processing logic can be encapsulated in a function, class, or module. To complete the exchange of texture data from the second application interface to the first application interface, the fourth processing logic can be called through the second application interface to perform texture rendering and obtain the second image data.

[0066] Optionally, the first application interface can create a texture object. When the second application interface obtains the second image data, the fifth processing logic can be called through the first application interface to copy the second image data from the second application interface to the texture object of the first application interface. During graphics rendering, the texture object is mapped onto the surface of the 3D model, thus giving the model rich details and appearance. In graphics processing, the texture object is an entity used to store and manage texture data. The copying process may involve memory operations, copying the second image data from one memory area to the memory area where the texture object resides, obtaining the updated second texture data. Optionally, the fifth processing logic can be a function or code logic used to upload 2D image data to the texture object, allowing the texture to be used during graphics rendering. Specifically, the fifth processing logic is used to load the second image data into the texture object of the first application interface during graphics rendering. Once the second image data is uploaded to the texture object to obtain the second texture data, in subsequent rendering processes, the second texture data can be applied to the surface of the 3D model for graphics rendering and display through texture sampling operations.

[0067] As an optional but not limited implementation, see [link to relevant documentation]. Figure 2 The second image data is obtained by rendering the second texture data through the fourth processing logic, including but not limited to the following steps:

[0068] The second texture data is transmitted to the canvas object associated with the second application interface through the fourth processing logic; the second image data is obtained by texture drawing on the canvas object associated with the second application interface through the fourth processing logic.

[0069] The fourth processing logic can be a predefined logic for processing texture data, which can be a piece of code, an algorithm, or a set of functions. This logic is used to transfer the texture data from the second application interface to the canvas object of the second application interface and to perform drawing operations on the canvas object. The second application interface is used to interact with the outside world and can be associated with a canvas object, allowing manipulation of the canvas by calling interface methods. The canvas object is a two-dimensional drawing area, and the second application interface can perform various graphic drawing operations on the canvas object of the second application interface by calling the fourth processing logic. The implementation of the canvas object may differ in different programming environments, but all provide a series of methods for drawing, such as drawing lines, rectangles, and circles. The second image data can be the image data obtained after drawing the second texture data on the canvas object of the second application interface.

[0070] The fourth processing logic transmits the second texture data to the canvas object associated with the second application interface. During this process, the fourth processing logic ensures that the texture data is transmitted to the canvas object in the correct format and manner. Specifically, this involves data decoding and conversion to ensure the canvas object can correctly recognize and process the data. On the canvas object associated with the second application interface, the fourth processing logic performs texture drawing on the second texture data, including but not limited to setting parameters such as drawing position, size, and rotation angle, and selecting appropriate drawing methods (such as tiling or stretching). Finally, the second image data is obtained after the drawing operation on the canvas object associated with the second application interface.

[0071] As an optional but not limited implementation, see [link to relevant documentation]. Figure 2 The image is displayed based on the second texture data through the first application interface, including but not limited to the following steps:

[0072] The rendering operation is performed on the second texture data on the first canvas through the first application interface to obtain the rendered content. The first canvas supports canvas drawing operations when it is outside the browser's visible area, and the rendering operation performed on the first canvas does not support on-screen display. The fifth processing logic is called through the first application interface to copy the rendered content on the first canvas to the texture object of the second canvas to obtain the fourth texture data. The second canvas supports canvas drawing operations when it is outside the browser's visible area, and the rendering operation performed on the first canvas supports on-screen display. The sixth processing logic is called through the first application interface to render the fourth texture data to the screen for image display.

[0073] The first canvas is an area for drawing graphics. Its characteristic is that drawing operations can be performed even outside the browser's visible area; however, the content rendered on the first canvas is not directly displayed on the screen. The second texture data can be understood as a digital representation of the image, containing information such as color and transparency. The fifth processing logic is a specific processing logic encapsulated in the first application interface, used to copy the content already rendered on the first canvas to the texture object on the second canvas. The first canvas allows you to perform canvas drawing operations outside the browser's visible area, which does not block the main thread when performing complex graphics rendering or background rendering.

[0074] Similar to the first canvas, the second canvas also supports drawing operations outside the browser's visible area. The difference is that the content rendered on the second canvas can be displayed on the screen. When the rendered content of the first canvas is copied to the texture object of the second canvas, it forms the fourth texture data, which contains the copied image information. The second canvas is used to display the final rendering result on the screen. It needs to obtain the already rendered content from the first canvas and copy it to the texture object of the second canvas using the fifth processing logic. Then, it calls the sixth processing logic through the first application interface to render the fourth texture data onto the visible area of ​​the screen, thus presenting the corresponding image. Optionally, the second canvas utilizes the rendering pipeline of the first application interface to render the fourth texture data onto the visible area of ​​the screen.

[0075] The first canvas can be a canvas object that is not directly associated with the browser's visible area. Using the first canvas, operations such as graphics drawing, image compositing, and special effects processing can be performed in the background without being directly displayed on the screen. This is suitable for performing complex rendering tasks in the background, avoiding blocking the main thread and thus improving page performance and responsiveness. After rendering is complete, the content of the first canvas can be transferred to a second canvas within the visible area for display, and then presented on the screen.

[0076] As an optional but not limited implementation, see [link to relevant documentation]. Figure 2 The task processing method of this disclosure embodiment may also include, but is not limited to, the following steps:

[0077] In response to the triggering operation of the first task, the fifth texture data of the first task is obtained through the first application interface, the data is processed through the computing power of the first application interface to obtain the sixth texture data, and the image is displayed through the first application interface based on the sixth texture data.

[0078] The first texture data is the texture data in the first task. However, processing the first texture data is a computationally intensive task. Such tasks typically involve complex algorithms and large amounts of data operations, requiring high computing power. This means that the processing process requires a significant amount of computing resources and time. Therefore, it is necessary to assist in data processing through the second application interface. Compared to the first texture data of the first task obtained through the first application interface, the data processing of the fifth texture data is not a computationally intensive task and does not require additional complex computing resources or distributed computing. Therefore, it can be processed directly using the computing power of the first application interface itself, i.e., it can be executed directly on the first application interface side.

[0079] Since processing the fifth texture data is not a computationally intensive task, executing it directly on the first application interface side avoids the latency caused by transferring data to other computing resources for processing, reducing data transfer time and overhead, thereby improving the overall task processing efficiency. Furthermore, it eliminates the need to build a complex distributed computing environment or additional computing resources for processing the fifth texture data; the processing can be completed using the capabilities of the first application interface itself. This simplifies the system architecture, reduces development and maintenance costs, and enables rapid response to the triggering operation of the first task, timely acquisition of data, processing, and image display.

[0080] The technical solution of this disclosure embodiment, upon receiving a trigger operation for a first task, can obtain the first texture data of the first task through a first application interface. The first application interface is an application programming interface for supporting indirect interaction with a graphics processor for graphics rendering on a browser. By fully utilizing the advantages of the first application interface in graphics rendering and display, the processed data can be efficiently displayed on a webpage. The compatibility of the first application interface allows it to run in multiple browser environments without the need for additional plugins or software. Simultaneously, based on the first texture data, the second texture data is obtained by processing the data through the computing power of a second application interface. The second application interface is an application programming interface for supporting direct interaction with a graphics processor for graphics rendering on a browser. The computing performance of the second application interface is higher than that of the first application interface. By using the second application interface to process the texture data, complex computational tasks can be completed faster. This significantly shortens the processing time and improves the overall operating efficiency and reduces waiting time when processing high-resolution texture data or image processing algorithms that require a large amount of computation. The first application interface focuses on graphics rendering and display, while the second application interface focuses on computational acceleration. By rationally allocating tasks between the first and second application interfaces, resource utilization can be optimized. Not only can the high-performance computing capabilities of the graphics processor be utilized, but the graphics rendering capabilities of the graphics processor can also be rationally utilized during the data display stage. The cooperation between the first and second application interfaces achieves functional complementarity, which can give full play to the advantages of both and realize a more powerful and efficient texture data rendering function.

[0081] Figure 3 This is a schematic diagram of a task processing device provided in an embodiment of the present disclosure. The present disclosure is applicable to situations where a task of rendering texture data is received, and the texture data can be rendered and displayed in high performance. The device can be implemented in the form of software and / or hardware, and optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.

[0082] like Figure 3 As shown, the task processing apparatus of this disclosure embodiment may include the following:

[0083] The acquisition module 310 is used to acquire the first texture data of the first task in response to the triggering operation of the first task through the first application interface. The first application interface is an application programming interface for supporting indirect interaction with the graphics processor for graphics rendering on a browser.

[0084] The processing module 320 is used to process the first texture data and obtain the second texture data through the computing power of the second application interface. The second application interface is an application programming interface for supporting direct interaction with the graphics processor for graphics rendering on a browser, and the computing performance of the second application interface is higher than that of the first application interface.

[0085] The display module 330 is used to obtain the second texture data returned by the second application interface through the first application interface, and display the image through the first application interface based on the second texture data.

[0086] Based on the above embodiments, optionally, the first task is a task of performing special effects processing on the first texture data input and presented on the browser.

[0087] Based on the above embodiments, optionally, second texture data is obtained by processing the first texture data using the computing power of the second application interface, including:

[0088] Based on the first texture data, the third texture data is transmitted to the second application interface through the first application interface;

[0089] The second application interface calls the computing power of the first processing logic to process the third texture data to obtain the second texture data.

[0090] Based on the above embodiments, optionally, according to the first texture data, the third texture data is transmitted to the second application interface through the first application interface, including:

[0091] The first application interface calls the second processing logic to perform texture drawing on the first texture data to obtain the first image data.

[0092] The third processing logic is invoked through the second application interface to copy the first image data into the texture object of the second application interface to obtain the third texture data.

[0093] Based on the above embodiments, optionally, the first image data is obtained by texture drawing on the first texture data through the second processing logic, including:

[0094] The first texture data is transmitted to the canvas object associated with the first application interface through the second processing logic.

[0095] The second processing logic is used to draw the first texture data on the canvas object associated with the first application interface to obtain the first image data.

[0096] Based on the above embodiments, optionally, obtaining the second texture data returned by the second application interface through the first application interface includes:

[0097] The second application interface calls the fourth processing logic to perform texture drawing on the second texture data to obtain the second image data.

[0098] The first application interface calls the fifth processing logic to copy the second image data into the texture object of the first application interface to obtain the second texture data.

[0099] Based on the above embodiments, optionally, the second image data is obtained by texture drawing on the second texture data through the fourth processing logic, including:

[0100] The second texture data is transmitted to the canvas object associated with the second application interface through the fourth processing logic.

[0101] The second image data is obtained by rendering the second texture data on the canvas object associated with the second application interface through the fourth processing logic.

[0102] Based on the above embodiments, optionally, the image is displayed through a first application interface according to the second texture data, including:

[0103] The rendering content is obtained by performing a rendering operation on the second texture data on the first canvas through the first application interface. The first canvas supports canvas drawing operations when it is out of the browser's visible area, and the rendering operation performed on the first canvas does not support on-screen display.

[0104] The fifth processing logic is called through the first application interface to copy the rendered content on the first canvas to the texture object of the second canvas to obtain the fourth texture data. The second canvas supports canvas drawing operations when it is out of the browser's visible area, and the rendering operations performed on the first canvas support on-screen display.

[0105] The sixth processing logic is invoked through the first application interface to render the fourth texture data onto the screen for image display.

[0106] Based on the above embodiments, optionally, the task processing apparatus of this disclosure embodiment further includes:

[0107] In response to the triggering operation of the first task, the fifth texture data of the first task is obtained through the first application interface, the data is processed through the computing power of the first application interface to obtain the sixth texture data, and the image is displayed through the first application interface based on the sixth texture data.

[0108] The technical solution of this disclosure embodiment, upon receiving a trigger operation for a first task, can obtain the first texture data of the first task through a first application interface. The first application interface is an application programming interface for supporting indirect interaction with a graphics processor for graphics rendering on a browser. By fully utilizing the advantages of the first application interface in graphics rendering and display, the processed data can be efficiently displayed on a webpage. The compatibility of the first application interface allows it to run in multiple browser environments without the need for additional plugins or software. Simultaneously, based on the first texture data, the second texture data is obtained by processing the data through the computing power of a second application interface. The second application interface is an application programming interface for supporting direct interaction with a graphics processor for graphics rendering on a browser. The computing performance of the second application interface is higher than that of the first application interface. By using the second application interface to process the texture data, complex computational tasks can be completed faster. This significantly shortens the processing time and improves the overall operating efficiency and reduces waiting time when processing high-resolution texture data or image processing algorithms that require a large amount of computation. The first application interface focuses on graphics rendering and display, while the second application interface focuses on computational acceleration. By rationally allocating tasks between the first and second application interfaces, resource utilization can be optimized. Not only can the high-performance computing capabilities of the graphics processor be utilized, but the graphics rendering capabilities of the graphics processor can also be rationally utilized during the data display stage. The cooperation between the first and second application interfaces achieves functional complementarity, which can give full play to the advantages of both and realize a more powerful and efficient texture data rendering function.

[0109] The task processing apparatus provided in this disclosure can execute the task processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the task processing method.

[0110] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0111] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 4 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 4The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0112] like Figure 4 As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.

[0113] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 4 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0114] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.

[0115] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0116] The electronic device provided in this embodiment and the task processing method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0117] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the task processing method provided in the above embodiments.

[0118] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0119] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0120] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0121] The aforementioned computer-readable medium carries one or more programs. When the electronic device executes the aforementioned one or more programs, the electronic device causes the following: In response to a triggering operation of a first task, the electronic device obtains first texture data of the first task through a first application interface, wherein the first application interface is an application programming interface for supporting indirect interaction with a graphics processor for graphics rendering on a browser; Based on the first texture data, the electronic device performs data processing through the computing power of a second application interface to obtain second texture data, wherein the second application interface is an application programming interface for supporting direct interaction with a graphics processor for graphics rendering on a browser, and the computing performance of the second application interface is higher than that of the first application interface; The electronic device obtains the second texture data returned by the second application interface through the first application interface, and displays an image based on the second texture data through the first application interface.

[0122] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0124] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0125] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0126] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0127] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0128] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0129] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A task processing method, characterized in that, The method includes: In response to the triggering operation of the first task, the first texture data of the first task is obtained through the first application interface, wherein the first application interface is an application programming interface for supporting indirect interaction with the graphics processor for graphics rendering on a browser. Based on the first texture data, the second texture data is obtained by data processing through the computing power of the second application interface. The second application interface is an application programming interface for supporting direct interaction with the graphics processor for graphics rendering on the browser, and the computing performance of the second application interface is higher than that of the first application interface. The second texture data returned by the second application interface is obtained through the first application interface, and the image is displayed through the first application interface based on the second texture data.

2. The method according to claim 1, characterized in that, The first task is to perform special effects processing on the first texture data that is input and displayed in the browser.

3. The method according to claim 1, characterized in that, Based on the first texture data, second texture data is obtained by processing the data using the computing power of the second application interface, including: Based on the first texture data, the third texture data is transmitted to the second application interface through the first application interface; The second application interface calls the computing power of the first processing logic to process the third texture data to obtain the second texture data.

4. The method according to claim 3, characterized in that, Based on the first texture data, the third texture data is transmitted from the first application interface to the second application interface, including: The first application interface calls the second processing logic to perform texture drawing on the first texture data to obtain the first image data. The third processing logic is invoked through the second application interface to copy the first image data into the texture object of the second application interface to obtain the third texture data.

5. The method according to claim 4, characterized in that, The first image data is obtained by performing texture rendering on the first texture data through the second processing logic, including: The first texture data is transmitted to the canvas object associated with the first application interface through the second processing logic. The second processing logic is used to draw the first texture data on the canvas object associated with the first application interface to obtain the first image data.

6. The method according to claim 1, characterized in that, The second texture data returned by the second application interface is obtained through the first application interface, including: The second application interface calls the fourth processing logic to perform texture drawing on the second texture data to obtain the second image data. The first application interface calls the fifth processing logic to copy the second image data into the texture object of the first application interface to obtain the second texture data.

7. The method according to claim 6, characterized in that, The second image data is obtained by performing texture rendering on the second texture data through the fourth processing logic, including: The second texture data is transmitted to the canvas object associated with the second application interface through the fourth processing logic. The second image data is obtained by rendering the second texture data on the canvas object associated with the second application interface through the fourth processing logic.

8. The method according to claim 1, characterized in that, The image is displayed through the first application interface based on the second texture data, including: The rendering content is obtained by performing a rendering operation on the second texture data on the first canvas through the first application interface. The first canvas supports canvas drawing operations when it is out of the browser's visible area, and the rendering operation performed on the first canvas does not support on-screen display. The fifth processing logic is called through the first application interface to copy the rendered content on the first canvas to the texture object of the second canvas to obtain the fourth texture data. The second canvas supports canvas drawing operations when it is out of the browser's visible area, and the rendering operations performed on the first canvas support on-screen display. The sixth processing logic is invoked through the first application interface to render the fourth texture data onto the screen for image display.

9. The method according to claim 1, characterized in that, The method further includes: In response to the triggering operation of the first task, the fifth texture data of the first task is obtained through the first application interface, the data is processed through the computing power of the first application interface to obtain the sixth texture data, and the image is displayed through the first application interface based on the sixth texture data.

10. A task processing device, characterized in that, The device includes: The acquisition module is used to acquire the first texture data of the first task in response to the triggering operation of the first task through the first application interface. The first application interface is an application programming interface for supporting indirect interaction with the graphics processor for graphics rendering on a browser. The processing module is used to process the first texture data and obtain the second texture data through the computing power of the second application interface. The second application interface is an application programming interface for supporting direct interaction with the graphics processor for graphics rendering on a browser, and the computing performance of the second application interface is higher than that of the first application interface. The display module is used to obtain the second texture data returned by the second application interface through the first application interface, and display the image through the first application interface based on the second texture data.

11. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the task processing method according to any one of claims 1-9.

12. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the task processing method according to any one of claims 1-9.