Method and terminal for implementing display cache
First Claim
1. A method for implementing display cache for a webpage comprising text regions and non-text regions, comprising:
- determining the text regions of the webpage by analyzing Hypertext Markup Language, HTML, of the webpage;
creating, for each of the text regions, a corresponding text component;
storing, in memory, the created text components as text component objects;
creating, for each of the stored text component objects, a corresponding cache image object with a same size as the stored text component object and displaying the created cache image object on a screen;
wherein creating for each of the stored text component objects a corresponding cache image object with a same size as the stored text component objects comprises;
creating, for each of the stored text component object, a blank image with a same size as the stored text component object, and rendering texts on the created blank image to obtain a corresponding cache image object.
1 Assignment
0 Petitions
Accused Products
Abstract
The embodiment of the disclosure discloses a method and terminal for implementing display cache, which comprise storing, in memory, texts to be displayed as text component objects; creating a cache image object with a same size as a stored text component when displaying the text component on a screen. In the solution of display cache according to the embodiment of the disclosure, cache images are only created for text regions. Memory that would be occupied by creating cache images for non-text regions, can be saved, which offers the cache images a smaller area and a less memory occupation. By means of the solution according to the embodiment of the disclosure, a lot of running memory can be saved for programs and memory requirements of a lot of product characteristics can be met, without affecting fast display.
-
Citations
18 Claims
-
1. A method for implementing display cache for a webpage comprising text regions and non-text regions, comprising:
-
determining the text regions of the webpage by analyzing Hypertext Markup Language, HTML, of the webpage; creating, for each of the text regions, a corresponding text component; storing, in memory, the created text components as text component objects; creating, for each of the stored text component objects, a corresponding cache image object with a same size as the stored text component object and displaying the created cache image object on a screen; wherein creating for each of the stored text component objects a corresponding cache image object with a same size as the stored text component objects comprises; creating, for each of the stored text component object, a blank image with a same size as the stored text component object, and rendering texts on the created blank image to obtain a corresponding cache image object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A terminal for implementing display cache for a webpage comprising text regions and non-text regions, the terminal comprising a screen, a first processing module and a creating module, wherein
the first processing module is configured to determine text regions of a webpage to be displayed by analyzing Hypertext Markup Language, HTML, of the webpage and to create a corresponding text component for each of the text regions and to store, in memory, the created text components as text component objects; - and
the creating module is configured to create, for each of the stored text component objects, a corresponding cache image object with a same size as the stored text component object, and to display the created cache image object on the screen, wherein the creating module is further configured to create, for each of the stored text component object, a blank image with a same size as the stored text component object, and render texts on the created blank image to obtain a corresponding cache image object. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
- and
Specification