Parameter configuration method, apparatus and storage medium
By directly acquiring and sending interface configuration parameters from the application software's memory space to the rendering engine, the problem of low efficiency in user interface configuration in existing technologies is solved. This enables quick configuration of interface parameters without restarting the device, improving debugging efficiency and flexibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ALIBABA INNOVATION PRIVATE LIMITED
- Filing Date
- 2021-05-20
- Publication Date
- 2026-05-05
AI Technical Summary
In existing technologies, user interface configuration is inefficient, requiring a device restart to view the product interface's appearance, resulting in low debugging efficiency.
The configuration parameters of the interface are obtained into the memory space of the application software, and then the business logic layer sends them to the rendering engine. The rendering engine directly uses the configuration parameters for configuration, thus avoiding the device restart process.
It improves the efficiency of real-time interface configuration, enabling quick acquisition and configuration of interface parameters without device restart, thus enhancing debugging efficiency and flexibility.
Smart Images

Figure CN115373770B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a parameter configuration method, apparatus and storage medium. Background Technology
[0002] User experience designers or product designers, when debugging the visual effects of product interfaces such as devices, usually save the modified parameters in the engine configuration file so that the rendering engine can directly read the engine configuration file. This allows engine development to be carried out without directly changing the configuration of the human-computer interaction interface.
[0003] However, each time the engine configuration file is read, the rendering engine needs to start the device to check the presentation of the product interface, resulting in still low debugging efficiency.
[0004] Therefore, it is necessary to further improve the configuration efficiency of the user interface. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a parameter configuration method, apparatus, and storage medium to solve or alleviate the above problems.
[0006] According to a first aspect of the present invention, a parameter configuration method is provided, comprising: obtaining configuration parameters of an interface into the memory space of an application software corresponding to the interface; the business logic layer of the application software sending the configuration parameters in the memory space to the rendering engine of the application software; and the rendering engine configuring the parameters of the interface using the configuration parameters.
[0007] According to a second aspect of the present invention, a parameter configuration apparatus is provided, comprising: an acquisition module for acquiring configuration parameters of an interface into the memory space of an application software corresponding to the interface; a sending module for the business logic layer of the application software to send the configuration parameters in the memory space to the rendering engine of the application software; and a configuration module for the rendering engine to configure the parameters of the interface using the configuration parameters.
[0008] According to a third aspect of the present invention, a storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements a parameter configuration method according to the first aspect.
[0009] In the solution of this embodiment of the invention, since the configuration parameters of the interface are obtained in the memory space of the application software corresponding to the interface, the configuration parameters can be sent directly from the memory space to the rendering engine. Therefore, the rendering engine can quickly obtain the configuration parameters of the interface, which improves the real-time configuration efficiency of the interface. Attached Figure Description
[0010] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0011] Figure 1 A schematic diagram illustrating the debugging of a typical vehicle infotainment system;
[0012] Figure 2 This is a schematic flowchart illustrating a parameter configuration method according to an embodiment of the present invention.
[0013] Figure 3A A schematic diagram illustrating parameter configuration for another embodiment of the present invention;
[0014] Figure 3B A schematic diagram of a parameter configuration interface according to another embodiment of the present invention;
[0015] Figure 4 A schematic flowchart illustrating a parameter configuration method according to another embodiment of the present invention;
[0016] Figure 5 This is a schematic block diagram of an electronic device according to another embodiment of the present invention;
[0017] Figure 6 A schematic block diagram of a parameter configuration device according to another embodiment of the present invention; and
[0018] Figure 7 The hardware structure of an electronic device is shown in another embodiment of the present invention. Detailed Implementation
[0019] To enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art should fall within the protection scope of the present invention.
[0020] The specific implementation of the embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0021] Figure 1 This is a schematic diagram illustrating the debugging of a typical in-vehicle infotainment system. (Example:) Figure 1As shown, the debugging device 20 can generate an engine configuration file for the user interface (UI) of the application software 14 and transfer the configuration file to the storage space 11 of the vehicle system 10. The storage space 11 is a secondary storage space such as flash memory or read-only memory. When the vehicle system 10 starts up or restarts, the rendering engine 12 reads the configuration file from the storage space 11 and writes it into the memory 13. Then, the rendering engine 12 calls the graphics processor to configure the user interface of the application software 14.
[0022] Figure 2 This is a schematic flowchart illustrating a parameter configuration method according to an embodiment of the present invention. The solution of this embodiment can be applied to any suitable electronic device with data processing capabilities, including but not limited to mobile terminals (such as mobile phones, tablets, etc.), in-vehicle systems, and PCs. Figure 2 The parameter configuration methods include:
[0023] 210: Retrieve the configuration parameters of the interface into the memory space of the application software corresponding to the interface.
[0024] It should be understood that the interface can be the interface of application software (e.g., a client) for electronic devices such as in-vehicle infotainment systems. It can be installed in the operating system of the electronic device using parameter configuration methods, for example, in the operating system of an in-vehicle infotainment system. The aforementioned operating systems include, but are not limited to, embedded operating systems, real-time operating systems, IoT operating systems, desktop operating systems, server operating systems, etc.
[0025] It should also be understood that configuration parameters can be retrieved from secondary storage (external storage) and transferred to main memory (primary storage). Secondary storage refers to all accessible data storage outside of the computer's main memory or main memory. It is where programs and data are stored long-term, including but not limited to (fixed / removable) hard drives, optical discs, etc. The configuration file can also be obtained from peripheral interfaces or network interfaces, such as wireless network interfaces, near-field communication network interfaces, and mobile network interfaces.
[0026] 220: The application software's business logic layer sends the configuration parameters in the memory space to the application software's rendering engine.
[0027] It should be understood that the rendering engine can be invoked through application software. For example, the configuration parameters can be forwarded to the rendering engine by the application software calling the rendering engine's API.
[0028] 230: The rendering engine uses configuration parameters to configure the parameters of the interface.
[0029] It should be understood that the rendering engine can invoke the graphics processor through shaders to configure parameters for the user. Interface configuration parameters include at least one of the following: interface color parameters, control size parameters, and control position and layout parameters.
[0030] In one example, configuration parameters can be data that the shader can process. The rendering engine can forward these configuration parameters to the shader without parsing them, thus improving data processing efficiency.
[0031] In another example, the configuration parameters can be parameters that the rendering engine can parse, and after being parsed by the rendering engine, the shader can process the parsed data, thus eliminating the need for special configuration of the shader and achieving seamless integration with the underlying layers.
[0032] In the solution of this embodiment of the invention, since the configuration parameters of the interface are obtained in the memory space of the application software corresponding to the interface, the configuration parameters can be sent directly from the memory space to the rendering engine. Therefore, the rendering engine can quickly obtain the configuration parameters of the interface, which improves the real-time configuration efficiency of the interface.
[0033] Furthermore, existing solutions require device restarts to configure the interface, making it difficult to detect subtle interface changes such as color or size during the interface debugging process. The embodiments of this application are able to...
[0034] In another implementation of the present invention, obtaining the configuration parameters of the interface into the memory space of the application software corresponding to the interface includes: the interface layer of the application software reading the configuration parameters of the interface through a peripheral interface; and the interface layer obtaining the configuration parameters into the memory space of the application software corresponding to the interface.
[0035] Because it can obtain the configuration parameters of the application software's user interface into the application software's corresponding memory space through the peripheral interface, it achieves flexibility and speed in obtaining configuration parameters.
[0036] In another implementation of the present invention, the interface layer of the application software reads the configuration parameters of the interface through the peripheral interface, including: the interface layer of the application software accesses a file containing the configuration parameters of the interface in the external debugging device through the communication connection between the peripheral interface and the external debugging device; the interface layer reads the file to obtain the configuration parameters.
[0037] Because the configuration parameters of the application software's user interface can be obtained from the peripheral debugging device used to generate configuration parameters via the peripheral interface and transferred to the memory space corresponding to the application software, parameter debugging efficiency is achieved.
[0038] In another implementation of the present invention, the method further includes: establishing a communication connection between the peripheral interface and an external debugging device.
[0039] Because a communication connection can be established even without a communication connection, the flexibility of obtaining configuration parameters is further improved.
[0040] In one example, the method also includes disconnecting the communication connection between the peripheral interface and the external debugging device.
[0041] In another implementation of the present invention, the configuration parameters are implemented based on Extensible Markup Language (XML) or on the data format JASON.
[0042] Because Extensible Markup Language (XML) or the data format JASON are structured languages, the efficiency of the rendering engine in parsing configuration parameters is improved.
[0043] In another implementation of the present invention, sending configuration parameters from memory space to the rendering engine includes: forwarding configuration parameters from memory space to the rendering engine via the business logic layer of the application software.
[0044] Because the configuration parameters can be forwarded from memory to the rendering engine through the application software's business logic layer, and there is an inherent interface between the business logic layer and the rendering engine, the user interface configuration can be implemented using this interface without additional configuration.
[0045] In another implementation of the present invention, the rendering engine configures the parameters of the interface using configuration parameters, including: parsing the configuration parameters through the rendering engine to obtain the parsing result; sending the parsing result to the shader; and the shader scheduling the graphics processor using the parsing result to draw the interface.
[0046] Since the rendering engine can parse the configuration parameters and obtain the parsing results, the shader can use the parsing results to schedule the graphics processor to draw the user interface without changing the shader configuration, thus achieving seamless rendering of the underlying layer.
[0047] Figure 3A This is a schematic diagram illustrating parameter configuration for another embodiment of the present invention. Figure 3A As shown, the debugging device sends configuration information in formats such as XML or JASON to the parameter configuration method interface. The parameter configuration method interface forwards the configuration information to the rendering engine through the Business Logic (BL) layer. The rendering engine calls the Graphics Processing Unit (GPU) through shaders to draw the user interface.
[0048] In another implementation of the present invention, the interface layer obtains the configuration parameters into the memory space of the application software corresponding to the interface, including: while deleting the previous configuration parameters in the memory space of the application software corresponding to the interface, the interface layer obtains the configuration parameters into the memory space of the application software corresponding to the interface to update the configuration parameters.
[0049] It should be understood that updating configuration parameters improves the efficiency of real-time debugging of the user interface.
[0050] Figure 3B This is a schematic diagram of a parameter configuration interface according to another embodiment of the present invention. In this example, the parameter configuration interface may include a toolbar and corresponding operation areas. The toolbar may include tabs such as a configuration parameter editing tab, a send tab for sending configuration parameters to the vehicle system, a save tab for saving the current configuration parameters as a file, an import tab for importing existing configuration parameters, a file generation tab for generating XML files, and a generation tab for generating code, etc. It should be understood that the functions of the various tabs and the arrangement of the tabs are merely exemplary and should not be construed as limiting the embodiments of the present invention.
[0051] like Figure 3B As shown, for example, triggering the configuration parameter editing tab will take you to the configuration parameter editing interface. In the interface shown in the figure, parameters for attributes such as global, land, grassland, water system, building facade, building roof, and dynamic sky are configured. For example, the corresponding parameters can be adjusted or initialized through user input.
[0052] Furthermore, in response to a trigger on the send tab of the vehicle's infotainment system to send the edited configuration parameters, corresponding data can be sent to the system's application software. In one example, the edited configuration parameters can be directly sent to the application software's interface layer, which then forwards the data to the rendering engine to configure the application software's parameters. In another example, the edited configuration parameters can be encrypted, and the encrypted parameters can be sent to the application software's interface layer to configure the application software's parameters.
[0053] Furthermore, responding to the trigger of the Save tab for saving the current configuration parameters to a file allows the edited configuration parameters to be saved locally. Responding to the trigger of the Import tab for importing existing configuration parameters allows the saved configuration parameters to be displayed in the interface; additionally, responding to the trigger of the Import tab for importing existing configuration parameters also allows the import of pre-stored configuration parameters locally or obtained via the network. It should be understood that the imported pre-stored or network-obtained configuration parameters can be in encrypted or unencrypted format.
[0054] Furthermore, in response to the triggering of the file generation tab for generating XML files, the locally input configuration parameters are generated into an XML format file. It should be understood that the application software's interface layer can have its own interface for reading XML format files, enabling efficient configuration parameter processing and allowing for quick viewing of the interface effects based on the input configuration parameters.
[0055] Furthermore, in response to triggering the generate tab for generating code, the locally input configuration parameters are used to generate code. In one example, the generated code can serve as a configuration file for the rendering engine. In another example, the generated code allows modification (e.g., increasing or decreasing) of individual attributes in the configuration parameters (e.g., land, grass, cloud density, solar radius, etc.). This enables efficient input of individual parameter values for attributes and allows configuration of individual attributes by changing the code.
[0056] Figure 4 This is a schematic flowchart illustrating a parameter configuration method according to another embodiment of the present invention. The solutions of this embodiment can be applied to application software of any suitable electronic device with data processing capabilities, including but not limited to application software of mobile terminals (such as mobile phones, tablets, etc.), in-vehicle systems, and PCs.
[0057] The method includes:
[0058] 410: Obtain the configuration parameters of the interface into the memory space of the application software corresponding to the interface.
[0059] 420: The application software's business logic layer sends the configuration parameters in the memory space to the application software's rendering engine.
[0060] 430: The rendering engine uses shaders to draw the interface.
[0061] In the solution of this embodiment of the invention, since the configuration parameters of the interface are obtained in the memory space of the application software corresponding to the interface, the configuration parameters can be sent directly from the memory space to the rendering engine. Therefore, the rendering engine can quickly obtain the configuration parameters of the interface, which improves the real-time configuration efficiency of the interface.
[0062] Figure 5 This is a schematic block diagram of an electronic device according to another embodiment of the present invention. The solutions of this embodiment can be applied to any suitable electronic device with data processing capabilities, including but not limited to mobile terminals (such as mobile phones, tablets, etc.), in-vehicle systems, and PCs. The electronic device includes:
[0063] Module 510 retrieves the configuration parameters of the interface into the memory space of the application software corresponding to the interface.
[0064] It should be understood that application software can be installed within the operating system of electronic devices, such as the operating system of an in-vehicle infotainment system. These operating systems include, but are not limited to, embedded operating systems, real-time operating systems, IoT operating systems, desktop operating systems, and server operating systems.
[0065] It should also be understood that configuration parameters can be retrieved from secondary storage (external storage) and transferred to main memory (primary storage). Secondary storage refers to all accessible data storage outside of the computer's main memory or main memory. It is where programs and data are stored long-term, including but not limited to (fixed / removable) hard drives, optical discs, etc. The configuration file can also be obtained from peripheral interfaces or network interfaces, such as wireless network interfaces, near-field communication network interfaces, and mobile network interfaces.
[0066] The sending module 520 sends the configuration parameters in the memory space to the rendering engine of the application software from the application software's business logic layer.
[0067] Configuration module 530: The rendering engine uses configuration parameters to configure the parameters of the interface.
[0068] It should be understood that the rendering engine can invoke the graphics processor through shaders in order to configure parameters for the user.
[0069] In one example, configuration parameters can be data that the shader can process. The rendering engine can forward these configuration parameters to the shader without parsing them, thus improving data processing efficiency.
[0070] In another example, the configuration parameters can be parameters that the rendering engine can parse, and after being parsed by the rendering engine, the shader can process the parsed data, thus eliminating the need for special configuration of the shader and achieving seamless integration with the underlying layers.
[0071] In the solution of this embodiment of the invention, since the configuration parameters of the interface are obtained in the memory space of the application software corresponding to the interface, the configuration parameters can be sent directly from the memory space to the rendering engine. Therefore, the rendering engine can quickly obtain the configuration parameters of the interface, which improves the real-time configuration efficiency of the interface.
[0072] In another implementation of the present invention, the electronic device is a vehicle-mounted system.
[0073] In another implementation of the present invention, the acquisition module is specifically used for: the interface layer of the application software reading the configuration parameters of the interface through the peripheral interface; and the interface layer acquiring the configuration parameters into the memory space of the application software corresponding to the interface.
[0074] Because it can obtain the configuration parameters of the application software's user interface into the application software's corresponding memory space through the peripheral interface, it achieves flexibility and speed in obtaining configuration parameters.
[0075] In another implementation of the present invention, the acquisition module is specifically used for: the interface layer of the application software accessing a file containing configuration parameters of the interface in the external debugging device through a communication connection between the peripheral interface and the external debugging device; the interface layer reading the file to obtain the configuration parameters.
[0076] Because the configuration parameters of the application software's user interface can be obtained from the peripheral debugging device used to generate configuration parameters via the peripheral interface and transferred to the memory space corresponding to the application software, parameter debugging efficiency is achieved.
[0077] In another implementation of the present invention, the device further includes: a communication establishment module for establishing a communication connection between the peripheral interface and an external debugging device.
[0078] Because a communication connection can be established even without a communication connection, the flexibility of obtaining configuration parameters is further improved.
[0079] In another implementation of the present invention, the configuration parameters are implemented based on Extensible Markup Language (XML) or on the data format JASON.
[0080] Because Extensible Markup Language (XML) or the data format JASON are structured languages, the efficiency of the rendering engine in parsing configuration parameters is improved.
[0081] In another implementation of the present invention, the sending module is specifically used to forward configuration parameters from the memory space to the rendering engine via the business logic layer of the application software.
[0082] Because the configuration parameters can be forwarded from memory to the rendering engine through the application software's business logic layer, and there is an inherent interface between the business logic layer and the rendering engine, the user interface configuration can be implemented using this interface without additional configuration.
[0083] In another implementation of the present invention, the configuration module is specifically used to: parse the configuration parameters through the rendering engine to obtain the parsing result; send the parsing result to the shader; and the shader uses the parsing result to schedule the graphics processor to draw the interface.
[0084] Since the rendering engine can parse the configuration parameters and obtain the parsing results, the shader can use the parsing results to schedule the graphics processor to draw the user interface without changing the shader configuration, thus achieving seamless rendering of the underlying layer.
[0085] In another implementation of the present invention, the acquisition module is specifically used to: while deleting the previous configuration parameters in the memory space of the application software corresponding to the interface, the interface layer acquires the configuration parameters in the memory space of the application software corresponding to the interface to update the configuration parameters.
[0086] It should be understood that updating configuration parameters improves the efficiency of real-time debugging of the user interface.
[0087] The apparatus of this embodiment is used to implement the corresponding methods in the foregoing method embodiments and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. Furthermore, the functional implementation of each module in the apparatus of this embodiment can be referred to the description of the corresponding part in the foregoing method embodiments, which will also not be repeated here.
[0088] Figure 6 This is a schematic block diagram of application software according to another embodiment of the present invention. The solution of this embodiment can be applied to application software of any suitable electronic device with data processing capabilities, including but not limited to application software of mobile terminals (such as mobile phones, tablets, etc.), in-vehicle systems, and PCs. The application software includes:
[0089] The acquisition module 610 retrieves the configuration parameters of the interface into the memory space of the application software corresponding to the interface.
[0090] The sending module 620 sends the configuration parameters in the memory space to the rendering engine of the application software from the application software's business logic layer.
[0091] The drawing module 630, the rendering engine, uses shaders to draw the interface.
[0092] In the solution of this embodiment of the invention, since the configuration parameters of the interface are obtained in the memory space of the application software corresponding to the interface, the configuration parameters can be sent directly from the memory space to the rendering engine. Therefore, the rendering engine can quickly obtain the configuration parameters of the interface, which improves the real-time configuration efficiency of the interface.
[0093] The apparatus of this embodiment is used to implement the corresponding methods in the foregoing method embodiments and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. Furthermore, the functional implementation of each module in the apparatus of this embodiment can be referred to the description of the corresponding part in the foregoing method embodiments, which will also not be repeated here.
[0094] Figure 7 The hardware structure of an electronic device according to another embodiment of the present invention; such as Figure 7 As shown, the hardware structure of the electronic device may include: a processor 701, a communication interface 702, a storage medium 703, and a communication bus 704.
[0095] The processor 701, communication interface 702, and storage medium 703 communicate with each other through the communication bus 704.
[0096] Optionally, the communication interface 702 can be an interface of a communication module;
[0097] Specifically, the processor 701 can be configured to: acquire configuration parameters of the interface into the memory space of the application software corresponding to the interface; send the configuration parameters in the memory space to the rendering engine of the application software; and configure the parameters of the interface using the configuration parameters.
[0098] Alternatively, the configuration parameters of the interface are obtained into the memory space of the application software corresponding to the interface; the business logic layer of the application software sends the configuration parameters in the memory space to the rendering engine of the application software; the rendering engine uses shaders to draw the interface.
[0099] The aforementioned processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), an On-Premises Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor.
[0100] The aforementioned storage media may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0101] 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 storage medium, the computer program containing program code configured to perform the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), it performs the functions defined in the methods of this invention. It should be noted that the storage medium described in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. The 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 computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access storage media (RAM), read-only storage media (ROM), erasable programmable read-only storage media (EPROM or flash memory), optical fibers, portable compact disk read-only storage media (CD-ROM), optical storage media, magnetic storage media, or any suitable combination thereof. In this invention, 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 invention, a computer-readable signal medium may 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 also be any storage medium other than a computer-readable storage medium that can send, propagate, or transmit a program configured for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the storage medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0102] Computer program code configured to perform the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" 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 it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0103] 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 the present invention. 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 configured to perform a specified logical function. Specific sequences are present in the above specific embodiments, but these sequences are merely exemplary, and in actual implementations, these steps may be fewer, more, or executed in a different order. That is, in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked 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.
[0104] The modules described in the embodiments of this invention can be implemented in software or hardware. The names of these modules do not necessarily limit the module itself.
[0105] In another aspect, the present invention also provides a storage medium having a computer program stored thereon that, when executed by a processor, implements the method as described in the above embodiments.
[0106] In another aspect, the present invention also provides a storage medium, which may be included in the apparatus described in the above embodiments; or it may exist independently and not assembled into the apparatus. The storage medium carries one or more programs, which, when executed by the apparatus, cause the apparatus to: acquire configuration parameters of the interface into the memory space of the application software corresponding to the interface; the business logic layer of the application software sends the configuration parameters in the memory space to the rendering engine of the application software; and the rendering engine configures the parameters of the interface using the configuration parameters.
[0107] Alternatively, the configuration parameters of the interface are obtained into the memory space of the application software corresponding to the interface; the business logic layer of the application software sends the configuration parameters in the memory space to the rendering engine of the application software; the rendering engine uses shaders to draw the interface.
[0108] The terms "first," "second," "first," or "second" as used in the various embodiments of this disclosure may modify various components regardless of their order and / or importance, but these terms do not limit the corresponding components. The above terms are configured only for the purpose of distinguishing an element from other elements. For example, "first user equipment" and "second user equipment" refer to different user equipments, although both are user equipment. For example, without departing from the scope of this disclosure, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element.
[0109] When a component (e.g., a first component) is referred to as being "(operably or communicatively) coupled" or "(operably or communicatively) coupled to" or "connected to" another component (e.g., a second component), it should be understood that the first component is directly connected to the second component or that the first component is indirectly connected to the second component via yet another component (e.g., a third component). Conversely, it can be understood that when a component (e.g., a first component) is referred to as being "directly connected" or "directly coupled" to another component (the second component), no component (e.g., a third component) is inserted between the two.
[0110] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention is not limited to the specific combination of the above-described technical features, but also includes other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in this invention.
Claims
1. A parameter configuration method, comprising: The application software's interface layer reads the interface's configuration parameters through the peripheral interface; The interface layer obtains the configuration parameters into the memory space of the application software corresponding to the interface; The application software's business logic layer sends the configuration parameters in the memory space to the application software's rendering engine; The rendering engine uses the configuration parameters to configure the parameters of the interface, so that the rendering engine calls the graphics processor through the shader to draw the user interface.
2. The method according to claim 1, wherein, The application software's interface layer reads the interface's configuration parameters through a peripheral interface, including: The application software's interface layer accesses a file containing the interface's configuration parameters in the external debugging device through the communication connection between the peripheral interface and the external debugging device. The interface layer reads the file to obtain the configuration parameters.
3. The method according to claim 2, wherein, The method further includes: Establish a communication connection between the peripheral interface and the external debugging device.
4. The method according to claim 1, wherein, The configuration parameters are implemented based on Extensible Markup Language (XML) or the data format JASON.
5. The method according to claim 1, wherein, The rendering engine uses the configuration parameters to configure the parameters of the interface, including: The configuration parameters are parsed by the rendering engine to obtain the parsing result; The parsing result is sent to the shader; The shader uses the parsing result to schedule the graphics processor to draw the interface.
6. The method according to claim 1, wherein, The interface layer retrieves the configuration parameters into the memory space of the application software corresponding to the interface, including: While deleting the previous configuration parameters from the memory space of the application software corresponding to the interface, the interface layer retrieves the configuration parameters into the memory space of the application software corresponding to the interface to update the configuration parameters.
7. The method according to claim 1, wherein, The configuration parameters of the interface include at least one of the following: interface color parameters, control size parameters, and control position and layout parameters.
8. A parameter configuration device, comprising: The acquisition module is used by the application software's interface layer to read the configuration parameters of the interface through the peripheral interface; The interface layer obtains the configuration parameters into the memory space of the application software corresponding to the interface; The sending module is used by the business logic layer of the application software to send the configuration parameters in the memory space to the rendering engine of the application software. A configuration module is used by the rendering engine to configure the parameters of the interface using the configuration parameters, so that the rendering engine can call the graphics processor through the shader to draw the user interface.
9. A storage medium having a computer program stored thereon, which, when executed by a processor, implements the parameter configuration method according to any one of claims 1-7.
Citation Information
Patent Citations
Method, device, and system for configuring parameter of web application
CN108268289A