Multi-view masters for graphical designs
US-12164858-B2 · Dec 10, 2024 · US
US2020409727A1 · US · A1
| Field | Value |
|---|---|
| Publication number | US-2020409727-A1 |
| Application number | US-201916976182-A |
| Country | US |
| Kind code | A1 |
| Filing date | Feb 28, 2019 |
| Priority date | Mar 2, 2018 |
| Publication date | Dec 31, 2020 |
| Grant date | — |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
Disclosed by the present invention are a graphical user interface redrawing method, a terminal device and a computer readable storage medium. The method comprises: merging invalidate data of multiple Views under the same View Group in the same VSYNC drawing period in an Android system GUI and saving to a HashMap; sending to a user interface (UI) thread a message for delaying execution of an invalidate instruction; reading all invalidate data from the HashMap and emptying the HashMap after a delay time interval of the message is reached; and executing the invalidate instruction according to the read invalidate data.
Opening claim text (preview).
What is claimed is: 1 . A graphical user interface redrawing method, comprising steps of: in response to a content update of a View in the graphical user interface, uploading a corresponding invalidate data to a HashMap; determining whether a View Group to which the View belongs has saved any invalidate data in the HashMap; in response to having any saved invalidate data, merging the uploaded invalidate data and the saved invalidate data and saving the merged invalidate data to the HashMap; sending to a user interface (UI) thread a message for delaying execution of an invalidate instruction; reading all the invalidate data from the HashMap and emptying the HashMap after a delay time interval of the message is reached; and executing the invalidate instruction according to the read invalidate data. 2 . The graphical user interface redrawing method according to claim 1 , further comprising: in response to a case that the View Group to which the View belongs has not saved any invalidate data in the HashMap, directly saving the uploaded invalidate data to the HashMap. 3 . The graphical user interface redrawing method according to claim 2 , wherein the invalidate data comprises a reference of the View Group to which the View belongs, and a Dirty region. 4 . The graphical user interface redrawing method according to claim 2 , wherein the HashMap uses the reference of the View Group as a primary Key. 5 . The graphical user interface redrawing method according to claim 4 , wherein the step of determining whether the View Group to which the View belongs has saved any invalidate data in the HashMap comprises: using the reference of the View Group as the primary Key to check whether any invalidate data have been saved in the HashMap; and if it is found that the HashMap has saved any invalidate data for a same primary Key, determining that the View Group to which the View belongs has saved any invalidate data in the HashMap. 6 . The graphical user interface redrawing method according to claim 2 , wherein the delay time interval is smaller than a time interval of a vertical sync (VSYNC) signal. 7 . The graphical user interface redrawing method according to claim 2 , wherein the step of sending to the UI thread the message for delaying execution of the invalidate instruction comprises: sending to the UI thread a message with the delay time interval for delaying execution of the invalidate instruction. 8 . A terminal device, comprising a storage, a processor and a graphical user interface redrawing program stored in the storage and executable by the processor, wherein the graphical user interface redrawing program is executed by the processor to perform the steps of: in response to a content update of a View in the graphical user interface, uploading a corresponding invalidate data to a HashMap; determining whether a View Group to which the View belongs has saved any invalidate data in the HashMap; in response to having any saved invalidate data, merging the uploaded invalidate data and the saved invalidate data and saving the merged invalidate data to the HashMap; sending to a user interface (UI) thread a message for delaying execution of an invalidate instruction; reading all the invalidate data from the HashMap and emptying the HashMap after a delay time interval of the message is reached; and executing the invalidate instruction according to the read invalidate data. 9 . The terminal device according to claim 8 , wherein the graphical user interface redrawing program is executed by the processor to perform a further step of: in response to a case that the View Group to which the View belongs has not saved any invalidate data in the HashMap, directly saving the uploaded invalidate data to the HashMap. 10 . The terminal device according to claim 9 , wherein the invalidate data comprises a reference of the View Group to which the View belongs, and a Dirty region. 11 . The terminal device according to claim 9 , wherein the HashMap uses the reference of the View Group as a primary Key. 12 . The terminal device according to claim 11 , wherein the step of determining whether the View Group to which the View belongs has saved any invalidate data in the HashMap, performed by executing the graphical user interface redrawing program by the processor, comprises: using the reference of the View Group as the primary Key to check whether any invalidate data have been saved in the HashMap; and if it is found that the HashMap has saved any invalidate data for a same primary Key, determining that the View Group to which the View belongs has saved any invalidate data in the HashMap. 13 . The terminal device according to claim 9 , wherein the delay time interval is smaller than a time interval of a vertical sync (VSYNC) signal. 14 . A computer readable storage medium, storing a graphical user interface redrawing program, which is executed by a processor to perform the steps of: in response to a content update of a View in the graphical user interface, uploading a corresponding invalidate data to a HashMap; determining whether a View Group to which the View belongs has saved any invalidate data in the HashMap; in response to having any saved invalidate data, merging the uploaded invalidate data and the saved invalidate data and saving the merged invalidate data to the HashMap; sending to a user interface (UI) thread a message for delaying execution of an invalidate instruction; reading all the invalidate data from the HashMap and emptying the HashMap after a delay time interval of the message is reached; and executing the invalidate instruction according to the read invalidate data. 15 . The computer readable storage medium according to claim 14 , wherein the graphical user interface redrawing program is executed by the processor to perform a further step of: in response to a case that the View Group to which the View belongs has not saved any invalidate data in the HashMap, directly saving the uploaded invalidate data to the HashMap. 16 . The computer readable storage medium according to claim 15 , wherein the invalidate data comprises a reference of the View Group to which the View belongs, and a Dirty region. 17 . The computer readable storage medium according to claim 15 , wherein the HashMap uses the reference of the View Group as a primary Key. 18 . The computer readable storage medium according to claim 17 , wherein the step of determining whether the View Group to which the View belongs has saved any invalidate data in the HashMap comprises: using the reference of the View Group as the primary Key to check whether any invalidate data have been saved in the HashMap; and if it is found that the HashMap has saved any invalidate data for a same primary Key, determining that the View Group to which the View belongs has saved any invalidate data in the HashMap. 19 . The computer readable storage medium according to claim 15 , wherein the delay time interval is smaller than a time interval of a vertical sync (VSYNC) signal. 20 . The computer readable storage medium according to claim 15 , wherein the step of sending to the UI thread the message for delaying execution of the invalidate instruction, performed by executing the graphical user interface redrawing program by the processor, comprises: sending to the UI thread a message with the delay time interval for delaying execution of the invalidate instruction.
Related publications grouped by family.
Answers are generated from the same data shown on this page.