CN103809972B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN103809972B
CN103809972B CN201410046214.2A CN201410046214A CN103809972B CN 103809972 B CN103809972 B CN 103809972B CN 201410046214 A CN201410046214 A CN 201410046214A CN 103809972 B CN103809972 B CN 103809972B
Authority
CN
China
Prior art keywords
application
window
parameter
full
small window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410046214.2A
Other languages
Chinese (zh)
Other versions
CN103809972A (en
Inventor
王超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410046214.2A priority Critical patent/CN103809972B/en
Priority to US14/229,857 priority patent/US9250780B2/en
Publication of CN103809972A publication Critical patent/CN103809972A/en
Application granted granted Critical
Publication of CN103809972B publication Critical patent/CN103809972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a kind of information processing method and electronic equipment, described information processing method is applied in the electronic equipment with touch-display unit, and the electronic equipment can run N number of first application, and N is positive integer;When starting first application by destination object corresponding to the described first application, first application started can be shown in the touch-display unit by wicket;The viewing area of the wicket is less than the viewing area of the full screen window of the described first application, and the wicket enters line translation to the full screen window by the first parameter and obtained;Methods described includes:Obtain the first parameter of the wicket of first application;It is that the described first application distributes figure spatial cache based on first parameter;The graphics cache space of the wicket of first application is less than the graphics cache space of the full screen window of the described first application;Utilize the graphics cache data of graphics cache space storage first application.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to information processing technologies, and in particular, to an information processing method and an electronic device.
Background
In the initial development stage of the mobile terminal, the screen size of the mobile terminal is smaller, the resolution of the screen is lower, an operating system of the mobile terminal such as an Android system can only provide an application function of a single window, and only one application program can be displayed in the single window; i.e., the operating system allows only one application to be in the foreground and interact with the user. However, with the rapid development of mobile terminal hardware, especially the improvement of the resolution and the increase of the size of the screen, such a single-window application of the Android system cannot meet the needs of the user, and the user urgently needs that the operating system of the mobile terminal can provide a multi-window application function.
Based on this, when the user displays each application through a plurality of small windows, each small window needs a large graphic cache space to store graphic cache data of the application, which seriously consumes the memory of the electronic device and also affects the normal operation of the Android system.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide an information processing method and an electronic device.
The information processing method provided by the embodiment of the invention is applied to the electronic equipment with the touch display unit, wherein the electronic equipment can run N first applications, and N is a positive integer; when the first application is started through a target object corresponding to the first application, the started first application can be displayed on the touch display unit through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; the method comprises the following steps:
obtaining a first parameter of a widget of the first application;
allocating a graph cache space for the first application based on the first parameter; the graphic cache space of the small window of the first application is smaller than the graphic cache space of the full screen window of the first application;
and storing the graph cache data of the first application by utilizing the graph cache space.
The electronic equipment provided by the embodiment of the invention is provided with a touch display unit, wherein the electronic equipment can run N first applications, and N is a positive integer; when the first application is started through a target object corresponding to the first application, the started first application can be displayed on the touch display unit through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; the electronic device includes: the device comprises an acquisition unit, a distribution unit and a storage unit; wherein,
the acquiring unit is used for acquiring a first parameter of a small window of the first application;
the allocation unit is used for allocating a graphic cache space for the first application based on the first parameter; the graphic cache space of the small window of the first application is smaller than the graphic cache space of the full screen window of the first application;
the storage unit is configured to store the graphics cache data of the first application by using the graphics cache space.
In the technical scheme of the embodiment of the invention, the electronic equipment allocates a corresponding graphic cache space for the first application according to the window parameter of the first application; for example, when the window of the first application is small, a small graphic cache space may be allocated for the first application, and when the window of the first application is large, a large graphic cache space may be allocated for the first application, so that the user may clearly recognize the data displayed by the small window; here, the graphic cache space of the small window of the first application is smaller than the graphic cache space of the full-screen window of the first application, so that the first application is displayed by drawing the graphic cache data smaller than the full-screen window, the memory space of the electronic device can be saved, and the influence on the electronic device system caused by the memory occupied by the graphic cache data is reduced.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating an information processing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating an information processing method according to a third embodiment of the present invention;
FIG. 4 is a flowchart illustrating an information processing method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a first embodiment of the invention;
fig. 6 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
Fig. 1 is a flowchart illustrating an information processing method according to a first embodiment of the present invention, where the information processing method in this example is applied to an electronic device having a touch display unit, where the electronic device is capable of running N first applications, where N is a positive integer; when the first application is started through a target object corresponding to the first application, the started first application can be displayed on the touch display unit through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; as shown in fig. 1, the information processing method includes the steps of:
step 101: a first parameter of a widget of the first application is obtained.
In this embodiment, the first application run by the electronic device may be an application in the electronic device system, such as a clock application, a camera application, and the like, or may be a third-party application set by the user, such as a WeChat application, a game application, and the like.
Generally, all first applications are displayed on a desktop of the electronic device in an icon list mode, one first application corresponds to one icon, the corresponding first application can be started through the touch icon, and when the first application is started in the above mode, the first application is displayed on a display screen of the electronic device in a full-screen window mode.
In the embodiment of the invention, a first application is an application supporting small window display, and when the first application is started in a manner without limitation, the first application is displayed on a display touch unit of electronic equipment in a small window manner;
the method for starting the first application may be as follows: adding a first application into a multi-window management interface in advance so that the first application supports small window display; the multi-window management interface can be displayed by starting an icon corresponding to the multi-window management application; when the first application is started through the multi-window management interface, the first application is displayed on a display touch unit of the electronic equipment in a small-window mode.
Based on this, when the first application is displayed through the small window, a graphics cache space needs to be allocated for the first application to store the graphics cache data, and the graphics cache space allocated to the small window in this example is smaller than the graphics cache space allocated to the corresponding full-screen window.
Here, the widget of the first application corresponds to a first parameter, and when the full-screen window of the first application is transformed by using the first parameter, the widget of the first application can be obtained.
In this embodiment, the first parameter is at least one of the following parameters: parameters, a matrix, parameter groups and parameter sets; for example, the first parameter may be implemented by a first matrix, with which a full screen window of the first application is transformed, which may be implemented by equation (1 a):
wherein,coordinate vector, x, representing a small window2Is the abscissa of the small window, y2Is the ordinate of the small window, z2A general default setting is 1;
m denotes a first matrix, the first matrix being a 3 x 3 matrix, MijRepresenting the elements of the ith row and the jth column in the first matrix, wherein i takes the values of 1, 2 and 3; j takes the values of 1, 2 and 3;
coordinate vector, x, representing a full screen window1As abscissa of full screen window, y1Is the ordinate of a full-screen window, z1A general default setting is 1;
when the full screen window is subjected to scaling transformation by the formula (1 a), M can be convertedijThe 4 elements in (a) are set as follows: m11=α、M12=0、M21=0、M22= β, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into equation (1 a), equation (2 a) may be obtained:
wherein α is an abscissa scaling parameter, and β is an ordinate scaling parameter.
When the full-screen window is subjected to rotation transformation through the formula (1 a), M can be convertedijThe 4 elements in (a) are set as follows: m11=cosθ、M12=sinθ、M21=-sinθ、M22= cos θ, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into the formula (1 a), the formula (3 a) can be obtained:
where θ is the rotation angle.
The panning of the full-screen window of the first application by means of the first matrix may be implemented by equation (4 a):
when the full screen window is subjected to translation transformation by the formula (4 a), M can be convertedijThe 3 elements in (a) are set as follows: m11=a、M21=b、M31=0, and thus, the formula (5 a) can be derived by substituting the above-described parameters set into the formula (4 a):
wherein, a is an abscissa translation parameter, and b is an ordinate translation parameter.
Step 102: allocating a graphics cache space for the first application based on the first parameter.
Here, a graphics cache space of the widget of the first application is smaller than a graphics cache space of a full screen window of the first application.
In this embodiment, the first parameter represents the size of the widget corresponding to the first application, and therefore, after the size of the widget corresponding to the first application is determined by the first parameter, a graph cache space is allocated to the first application according to the size of the widget corresponding to the first application.
For example, when the window of the first application is small, a small graphic cache space may be allocated for the first application, and when the window of the first application is large, a large graphic cache space may be allocated for the first application, so that the user may clearly recognize the data displayed by the small window; here, the graphics cache space of the widget of the first application is smaller than the graphics cache space of the full screen window of the first application.
Step 103: and storing the graph cache data of the first application by utilizing the graph cache space.
According to the scheme of the embodiment of the invention, the first application is displayed by drawing the graphic cache data smaller than the full-screen window, so that the memory space of the electronic equipment can be saved, and the influence on the electronic equipment system caused by the memory occupied by the graphic cache data is reduced.
Fig. 2 is a flowchart illustrating an information processing method according to a second embodiment of the present invention, where the information processing method in this example is applied to an electronic device having a touch display unit, where the electronic device is capable of running N first applications, where N is a positive integer; when the first application is started through a target object corresponding to the first application, the started first application can be displayed on the touch display unit through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; as shown in fig. 2, the information processing method includes the steps of:
step 201: a first parameter of a widget of the first application is obtained.
In this embodiment, the first application run by the electronic device may be an application in the electronic device system, such as a clock application, a camera application, and the like, or may be a third-party application set by the user, such as a WeChat application, a game application, and the like.
Generally, all first applications are displayed on a desktop of the electronic device in an icon list mode, one first application corresponds to one icon, the corresponding first application can be started through the touch icon, and when the first application is started in the above mode, the first application is displayed on a display screen of the electronic device in a full-screen window mode.
In the embodiment of the invention, a first application is an application supporting small window display, and when the first application is started in a manner without limitation, the first application is displayed on a display touch unit of electronic equipment in a small window manner;
the method for starting the first application may be as follows: adding a first application into a multi-window management interface in advance so that the first application supports small window display; the multi-window management interface can be displayed by starting an icon corresponding to the multi-window management application; when the first application is started through the multi-window management interface, the first application is displayed on a display touch unit of the electronic equipment in a small-window mode.
Based on this, when the first application is displayed through the small window, a graphics cache space needs to be allocated for the first application to store the graphics cache data, and the graphics cache space allocated to the small window in this example is smaller than the graphics cache space allocated to the corresponding full-screen window.
Here, the widget of the first application corresponds to a first parameter, and when the full-screen window of the first application is transformed by using the first parameter, the widget of the first application can be obtained.
In this embodiment, the first parameter is at least one of the following parameters: parameters, a matrix, parameter groups and parameter sets; for example, the first parameter may be implemented by a first matrix, with which a full screen window of the first application is transformed, which may be implemented by equation (1 b):
wherein,coordinate vector, x, representing a small window2Is the abscissa of the small window, y2Is the ordinate of the small window, z2A general default setting is 1;
m denotes a first matrix, the first matrix being a 3 x 3 matrix, MijRepresenting the elements of the ith row and the jth column in the first matrix, wherein i takes the values of 1, 2 and 3; j takes the values of 1, 2 and 3;
coordinate vector, x, representing a full screen window1As abscissa of full screen window, y1Is the ordinate of a full-screen window, z1A general default setting is 1;
when the full-screen window is subjected to scaling transformation by the formula (1 b), M can be convertedijThe 4 elements in (a) are set as follows: m11=α、M12=0、M21=0、M22= β, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into equation (1 b), equation (2 b) may be obtained:
wherein α is an abscissa scaling parameter, and β is an ordinate scaling parameter.
When the full-screen window is subjected to rotation transformation through the formula (1 b), M can be convertedijThe 4 elements in (a) are set as follows: m11=cosθ、M12=sinθ、M21=-sinθ、M22= cos θ, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into formula (1 b), formula (3 b) can be obtained:
where θ is the rotation angle.
The panning of the full-screen window of the first application using the first matrix may be implemented by equation (4 b):
when the full screen window is subjected to translation transformation by the formula (4 b), M can be convertedijThe 3 elements in (a) are set as follows: m11=a、M21=b、M31=0, and thus, the formula (5 b) can be derived by substituting the above-described parameters set into the formula (4 b):
wherein, a is an abscissa translation parameter, and b is an ordinate translation parameter.
Step 202: allocating a graphics cache space for the first application based on the first parameter.
Here, a graphics cache space of the widget of the first application is smaller than a graphics cache space of a full screen window of the first application.
In this embodiment, the first parameter represents the size of the widget corresponding to the first application, and therefore, after the size of the widget corresponding to the first application is determined by the first parameter, a graph cache space is allocated to the first application according to the size of the widget corresponding to the first application.
For example, when the window of the first application is small, a small graphic cache space may be allocated for the first application, and when the window of the first application is large, a large graphic cache space may be allocated for the first application, so that the user may clearly recognize the data displayed by the small window; here, the graphics cache space of the widget of the first application is smaller than the graphics cache space of the full screen window of the first application.
Step 203: and storing the graph cache data of the first application by utilizing the graph cache space.
Step 204: and reading the graphic cache data of the first application, and merging the read graphic cache data into frame cache data corresponding to a screen display area of the electronic equipment.
Here, the graphic buffer data of the first application may be Red, Green, Blue (RGB) data.
The electronic equipment in the embodiment comprises two cache areas, namely a graph cache and a frame cache; the graph cache is used for storing RGB data drawn by a first application; the frame buffer is used for storing the frame buffer data after the graphics buffer data are merged, so that the content displayed in the screen display area of the electronic equipment is complete frame data.
Step 205: and displaying the frame buffer data on a touch display unit of the electronic equipment through a small window of the first application.
According to the scheme of the embodiment of the invention, the first application is displayed by drawing the graphic cache data smaller than the full-screen window, so that the memory space of the electronic equipment can be saved, and the influence on the electronic equipment system caused by the memory occupied by the graphic cache data is reduced.
Fig. 3 is a flowchart illustrating an information processing method according to a third embodiment of the present invention, where the information processing method in this example is applied to an electronic device having a touch display unit, where the electronic device is capable of running N first applications, where N is a positive integer; when the first application is started through a target object corresponding to the first application, the started first application can be displayed on the touch display unit through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; as shown in fig. 3, the information processing method includes the steps of:
step 301: a first parameter of a widget of the first application is obtained.
In this embodiment, the first application run by the electronic device may be an application in the electronic device system, such as a clock application, a camera application, and the like, or may be a third-party application set by the user, such as a WeChat application, a game application, and the like.
Generally, all first applications are displayed on a desktop of the electronic device in an icon list mode, one first application corresponds to one icon, the corresponding first application can be started through the touch icon, and when the first application is started in the above mode, the first application is displayed on a display screen of the electronic device in a full-screen window mode.
In the embodiment of the invention, a first application is an application supporting small window display, and when the first application is started in a manner without limitation, the first application is displayed on a display touch unit of electronic equipment in a small window manner;
the method for starting the first application may be as follows: adding a first application into a multi-window management interface in advance so that the first application supports small window display; the multi-window management interface can be displayed by starting an icon corresponding to the multi-window management application; when the first application is started through the multi-window management interface, the first application is displayed on a display touch unit of the electronic equipment in a small-window mode.
Based on this, when the first application is displayed through the small window, a graphics cache space needs to be allocated for the first application to store the graphics cache data, and the graphics cache space allocated to the small window in this example is smaller than the graphics cache space allocated to the corresponding full-screen window.
Here, the widget of the first application corresponds to a first parameter, and when the full-screen window of the first application is transformed by using the first parameter, the widget of the first application can be obtained.
In this embodiment, the first parameter is at least one of the following parameters: parameters, a matrix, parameter groups and parameter sets; for example, the first parameter may be implemented by a first matrix, with which a full screen window of the first application is transformed, which may be implemented by equation (1 c):
wherein,coordinate vector, x, representing a small window2Is the abscissa of the small window, y2Is the ordinate of the small window, z2A general default setting is 1;
m denotes a first matrix, the first matrix being a 3 x 3 matrix, MijRepresenting the elements of the ith row and the jth column in the first matrix, wherein i takes the values of 1, 2 and 3; j takes the values of 1, 2 and 3;
coordinate vector, x, representing a full screen window1As abscissa of full screen window, y1Is the ordinate of a full-screen window, z1A general default setting is 1;
when the full-screen window is subjected to scaling transformation by the formula (1 c), M can be convertedijThe 4 elements in (a) are set as follows: m11=α、M12=0、M21=0、M22= β, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into equation (1 c), equation (2 c) may be obtained:
wherein α is an abscissa scaling parameter, and β is an ordinate scaling parameter.
When the full-screen window is subjected to rotation transformation through the formula (1 c), M can be convertedijThe 4 elements in (a) are set as follows: m11=cosθ、M12=sinθ、M21=-sinθ、M22= cos θ, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into formula (1 c), formula (3 c) may be obtained:
where θ is the rotation angle.
The panning of the full-screen window of the first application using the first matrix may be implemented by equation (4 c):
when the full screen window is subjected to translation transformation by the formula (4 c), M can be convertedijThe 3 elements in (a) are set as follows: m11=a、M21=b、M31=0, and thus, the formula (5 c) can be derived by substituting the above-described parameters set into the formula (4 c):
wherein, a is an abscissa translation parameter, and b is an ordinate translation parameter.
Step 302: and determining the size of the display area of the small window of the first application according to the first parameter.
Step 303: and determining the graphic cache data volume of the first application according to the size of the display area of the small window and the screen resolution of the electronic equipment.
Specifically, the data size of the graphic cache is in direct proportion to the size of a display area and the resolution of a screen; when the display area is larger, the amount of the graph cache data is larger; when the display area is smaller, the quantity of the graph cache data is smaller; the higher the screen resolution, the larger the graphics cache data size; the lower the screen resolution, the smaller the graphics cache data amount.
Step 304: and allocating a graph cache space for the first application based on the graph cache data amount of the first application.
Here, a graphics cache space of the widget of the first application is smaller than a graphics cache space of a full screen window of the first application.
In this embodiment, the first parameter represents the size of the widget corresponding to the first application, and therefore, after the size of the widget corresponding to the first application is determined by the first parameter, a graph cache space is allocated to the first application according to the size of the widget corresponding to the first application.
For example, when the window of the first application is small, a small graphic cache space may be allocated for the first application, and when the window of the first application is large, a large graphic cache space may be allocated for the first application, so that the user may clearly recognize the data displayed by the small window; here, the graphics cache space of the widget of the first application is smaller than the graphics cache space of the full screen window of the first application.
Step 305: and storing the graph cache data of the first application by utilizing the graph cache space.
According to the scheme of the embodiment of the invention, the first application is displayed by drawing the graphic cache data smaller than the full-screen window, so that the memory space of the electronic equipment can be saved, and the influence on the electronic equipment system caused by the memory occupied by the graphic cache data is reduced.
Fig. 4 is a flowchart illustrating an information processing method according to a fourth embodiment of the present invention, where the information processing method in this example is applied to an electronic device having a touch display unit, where the electronic device is capable of running N first applications, where N is a positive integer; when the first application is started through a target object corresponding to the first application, the started first application can be displayed on the touch display unit through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; as shown in fig. 4, the information processing method includes the steps of:
step 401: a first parameter of a widget of the first application is obtained.
In this embodiment, the first application run by the electronic device may be an application in the electronic device system, such as a clock application, a camera application, and the like, or may be a third-party application set by the user, such as a WeChat application, a game application, and the like.
Generally, all first applications are displayed on a desktop of the electronic device in an icon list mode, one first application corresponds to one icon, the corresponding first application can be started through the touch icon, and when the first application is started in the above mode, the first application is displayed on a display screen of the electronic device in a full-screen window mode.
In the embodiment of the invention, a first application is an application supporting small window display, and when the first application is started in a manner without limitation, the first application is displayed on a display touch unit of electronic equipment in a small window manner;
the method for starting the first application may be as follows: adding a first application into a multi-window management interface in advance so that the first application supports small window display; the multi-window management interface can be displayed by starting an icon corresponding to the multi-window management application; when the first application is started through the multi-window management interface, the first application is displayed on a display touch unit of the electronic equipment in a small-window mode.
Based on this, when the first application is displayed through the small window, a graphics cache space needs to be allocated for the first application to store the graphics cache data, and the graphics cache space allocated to the small window in this example is smaller than the graphics cache space allocated to the corresponding full-screen window.
Here, the widget of the first application corresponds to a first parameter, and when the full-screen window of the first application is transformed by using the first parameter, the widget of the first application can be obtained.
In this embodiment, the first parameter is at least one of the following parameters: parameters, a matrix, parameter groups and parameter sets; for example, the first parameter may be implemented by a first matrix, with which a full screen window of the first application is transformed, which may be implemented by equation (1 d):
wherein,coordinate vector, x, representing a small window2Is the abscissa of the small window, y2Is the ordinate of the small window, z2A general default setting is 1;
m denotes a first matrix, the first matrix being a 3 x 3 matrix, MijRepresenting the elements of the ith row and the jth column in the first matrix, wherein i takes the values of 1, 2 and 3; j takes the values of 1, 2 and 3;
coordinate vector, x, representing a full screen window1As abscissa of full screen window, y1Is the ordinate of a full-screen window, z1A general default setting is 1;
when the full-screen window is subjected to scaling transformation by the formula (1 d), M can be convertedijThe 4 elements in (a) are set as follows: m11=α、M12=0、M21=0、M22= β, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into equation (1 d), equation (2 d) may be obtained:
wherein α is an abscissa scaling parameter, and β is an ordinate scaling parameter.
When the full-screen window is subjected to rotation transformation through the formula (1 d), M can be convertedijThe 4 elements in (a) are set as follows: m11=cosθ、M12=sinθ、M21=-sinθ、M22= cos θ, the other 5 elements may be arbitrarily set, and thus, by substituting the above parameters set into the formula (1 d), the formula (3 d) may be obtained:
where θ is the rotation angle.
The panning transform of the full-screen window of the first application by using the first matrix may be implemented by formula (4 d):
when the full screen window is subjected to translation transformation through the formula (4 d), M can be convertedijThe 3 elements in (a) are set as follows: m11=a、M21=b、M31=0, and thus, the formula (5 d) can be derived by substituting the above-described parameters set into the formula (4 d):
wherein, a is an abscissa translation parameter, and b is an ordinate translation parameter.
Step 402: allocating a graphics cache space for the first application based on the first parameter.
Here, a graphics cache space of the widget of the first application is smaller than a graphics cache space of a full screen window of the first application.
In this embodiment, the first parameter represents the size of the widget corresponding to the first application, and therefore, after the size of the widget corresponding to the first application is determined by the first parameter, a graph cache space is allocated to the first application according to the size of the widget corresponding to the first application.
For example, when the window of the first application is small, a small graphic cache space may be allocated for the first application, and when the window of the first application is large, a large graphic cache space may be allocated for the first application, so that the user may clearly recognize the data displayed by the small window; here, the graphics cache space of the widget of the first application is smaller than the graphics cache space of the full screen window of the first application.
Step 403: and storing the graph cache data of the first application by utilizing the graph cache space.
Step 404: when the first application is switched from the small window to a full-screen window, determining the graphic cache data volume of the first application according to the size of the display area of the full-screen window and the screen resolution of the electronic equipment.
Specifically, the data size of the graphic cache is in direct proportion to the size of a display area and the resolution of a screen; when the display area is larger, the amount of the graph cache data is larger; when the display area is smaller, the quantity of the graph cache data is smaller; the higher the screen resolution, the larger the graphics cache data size; the lower the screen resolution, the smaller the graphics cache data amount.
Step 405: and allocating a graph cache space for the first application based on the graph cache data amount of the first application.
Step 406: and storing the graph cache data of the first application by utilizing the graph cache space.
According to the scheme of the embodiment of the invention, the first application is displayed by drawing the graphic cache data smaller than the full-screen window, so that the memory space of the electronic equipment can be saved, and the influence on the electronic equipment system caused by the memory occupied by the graphic cache data is reduced.
Fig. 5 is a schematic structural composition diagram of an electronic device according to a first embodiment of the present invention, where the electronic device has a touch display unit 51, and the electronic device is capable of running N first applications, where N is a positive integer; when the first application is started through the target object corresponding to the first application, the started first application can be displayed on the touch display unit 51 through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; as shown in fig. 5, the electronic device includes: an acquisition unit 52, a distribution unit 53, a storage unit 54; wherein,
the obtaining unit 52 is configured to obtain a first parameter of a widget of the first application;
the allocating unit 53 is configured to allocate a graphics cache space for the first application based on the first parameter; the graphic cache space of the small window of the first application is smaller than the graphic cache space of the full screen window of the first application;
the storage unit 54 is configured to store the graphics cache data of the first application by using the graphics cache space.
In an embodiment of the present invention, the first parameter is at least one of the following parameters: parameters, matrices, parameter sets.
Those skilled in the art will understand that the implementation functions of each unit in the electronic device shown in fig. 5 can be understood by referring to the related description of the information processing method.
Fig. 6 is a schematic structural composition diagram of an electronic device according to a second embodiment of the present invention, where the electronic device has a touch display unit 61, and the electronic device is capable of running N first applications, where N is a positive integer; when the first application is started through the target object corresponding to the first application, the started first application can be displayed on the touch display unit 61 through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; as shown in fig. 6, the electronic apparatus includes: an acquisition unit 62, a distribution unit 63, and a storage unit 64; wherein,
the obtaining unit 62 is configured to obtain a first parameter of a widget of the first application;
the allocating unit 63 is configured to allocate a graphics cache space for the first application based on the first parameter; the graphic cache space of the small window of the first application is smaller than the graphic cache space of the full screen window of the first application;
the storage unit 64 is configured to store the graphics cache data of the first application by using the graphics cache space.
In an embodiment of the present invention, the first parameter is at least one of the following parameters: parameters, matrices, parameter sets.
Preferably, the electronic device further includes: a reading unit 65;
the reading unit 65 is configured to read the graphics cache data of the first application, and merge the read graphics cache data into frame cache data corresponding to a screen display area of the electronic device;
the touch display unit 61 is further configured to display the frame buffer data through a small window of the first application.
Those skilled in the art will understand that the implementation functions of each unit in the electronic device shown in fig. 6 can be understood by referring to the related description of the information processing method.
Fig. 7 is a schematic structural composition diagram of an electronic device according to a first embodiment of the present invention, where the electronic device has a touch display unit 71, and the electronic device is capable of running N first applications, where N is a positive integer; when the first application is started through the target object corresponding to the first application, the started first application can be displayed on the touch display unit 71 through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; as shown in fig. 7, the electronic apparatus includes: an acquisition unit 72, a distribution unit 73, and a storage unit 74; wherein,
the obtaining unit 72 is configured to obtain a first parameter of a widget of the first application;
the allocating unit 73 is configured to allocate a graphics cache space for the first application based on the first parameter; the graphic cache space of the small window of the first application is smaller than the graphic cache space of the full screen window of the first application;
the storage unit 74 is configured to store the graphics cache data of the first application by using the graphics cache space.
In an embodiment of the present invention, the first parameter is at least one of the following parameters: parameters, matrices, parameter sets.
Preferably, the distribution unit 73 includes: a first determination subunit 731, a second determination subunit 732, and a first assignment subunit 733; wherein,
the first determining subunit 731, configured to determine, according to the first parameter, a display area size of a widget of the first application;
the second determining subunit 732, configured to determine, according to the size of the display area of the small window and the screen resolution of the electronic device, the amount of graphics cache data of the first application;
the first allocating subunit 733, configured to allocate a graphics cache space for the first application based on a graphics cache data amount of the first application.
Those skilled in the art will understand that the implementation functions of each unit and its sub-units in the electronic device shown in fig. 7 can be understood by referring to the related description of the information processing method.
Fig. 8 is a schematic structural composition diagram of an electronic device according to a first embodiment of the present invention, where the electronic device has a touch display unit 81, and the electronic device is capable of running N first applications, where N is a positive integer; when the first application is started through the target object corresponding to the first application, the started first application can be displayed on the touch display unit 81 through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; as shown in fig. 8, the electronic apparatus includes: an acquisition unit 82, a distribution unit 83, and a storage unit 84; wherein,
the obtaining unit 82 is configured to obtain a first parameter of a widget of the first application;
the allocating unit 83 is configured to allocate a graphics cache space for the first application based on the first parameter; the graphic cache space of the small window of the first application is smaller than the graphic cache space of the full screen window of the first application;
the storage unit 84 is configured to store the graphics cache data of the first application by using the graphics cache space.
In an embodiment of the present invention, the first parameter is at least one of the following parameters: parameters, matrices, parameter sets.
Preferably, the distribution unit 83 includes: a third determining subunit 831, a second allocating subunit 832; wherein,
the third determining subunit 831, configured to determine, when the first application is switched from the small window to a full-screen window, a graphics cache data amount of the first application according to the size of the display area of the full-screen window and the screen resolution of the electronic device;
the second sub-allocating unit 832 is configured to allocate a graphics cache space for the first application based on the graphics cache data amount of the first application.
Those skilled in the art will understand that the implementation functions of each unit and its sub-units in the electronic device shown in fig. 8 can be understood by referring to the related description of the information processing method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (8)

1. An information processing method is applied to electronic equipment with a touch display unit, wherein the electronic equipment can run N first applications, and N is a positive integer; when the first application is started through a target object corresponding to the first application, the started first application can be displayed on the touch display unit through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; the method comprises the following steps:
obtaining a first parameter of a widget of the first application;
allocating a graph cache space for the first application based on the first parameter; the graphic cache space of the small window of the first application is smaller than the graphic cache space of the full screen window of the first application;
storing graph cache data of the first application by utilizing the graph cache space;
reading the graph cache data of the first application, and combining the read graph cache data into frame cache data corresponding to a screen display area of the electronic equipment;
and displaying the frame buffer data on a touch display unit of the electronic equipment through a small window of the first application.
2. The information processing method of claim 1, allocating graphics cache space for the first application based on the first parameter, comprising:
determining the size of a display area of a small window of the first application according to the first parameter;
determining the graphic cache data volume of the first application according to the size of the display area of the small window and the screen resolution of the electronic equipment;
and allocating a graph cache space for the first application based on the graph cache data amount of the first application.
3. The information processing method according to claim 1, when the first application is switched from the small window to a full screen window, the method further comprising:
determining the graphic cache data volume of the first application according to the size of the display area of the full-screen window and the screen resolution of the electronic equipment;
and allocating a graph cache space for the first application based on the graph cache data amount of the first application.
4. The information processing method according to any one of claims 1 to 3, wherein the first parameter is at least one of: parameters, matrices, parameter sets.
5. An electronic device is provided with a touch display unit and can run N first applications, wherein N is a positive integer; when the first application is started through a target object corresponding to the first application, the started first application can be displayed on the touch display unit through a small window; the display area of the small window is smaller than that of a full-screen window of the first application, and the small window is obtained by converting the full-screen window through a first parameter; the electronic device includes: the device comprises an acquisition unit, a distribution unit and a storage unit; wherein,
the acquiring unit is used for acquiring a first parameter of a small window of the first application;
the allocation unit is used for allocating a graphic cache space for the first application based on the first parameter; the graphic cache space of the small window of the first application is smaller than the graphic cache space of the full screen window of the first application;
the storage unit is used for storing the graph cache data of the first application by utilizing the graph cache space;
the electronic device further includes: a reading unit;
the reading unit is used for reading the graphic cache data of the first application and combining the read graphic cache data into frame cache data corresponding to a screen display area of the electronic equipment;
the touch display unit is further configured to display the frame buffer data through a small window of the first application.
6. The electronic device of claim 5, the allocation unit comprising: the system comprises a first determining subunit, a second determining subunit and a first allocating subunit; wherein,
the first determining subunit is configured to determine, according to the first parameter, a size of a display area of a widget of the first application;
the second determining subunit is configured to determine, according to the size of the display area of the small window and the screen resolution of the electronic device, the graphics cache data amount of the first application;
the first allocation subunit is configured to allocate a graphics cache space for the first application based on the graphics cache data amount of the first application.
7. The electronic device of claim 5, the allocation unit comprising: a third determining subunit and a second allocating subunit; wherein,
the third determining subunit is configured to determine, when the first application is switched from the small window to a full-screen window, a graph cache data amount of the first application according to a size of a display area of the full-screen window and a screen resolution of the electronic device;
and the second allocation subunit is used for allocating a graph cache space for the first application based on the graph cache data volume of the first application.
8. The electronic device of any of claims 5-7, the first parameter being at least one of: parameters, matrices, parameter sets.
CN201410046214.2A 2013-10-28 2014-02-10 A kind of information processing method and electronic equipment Active CN103809972B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410046214.2A CN103809972B (en) 2014-02-10 2014-02-10 A kind of information processing method and electronic equipment
US14/229,857 US9250780B2 (en) 2013-10-28 2014-03-29 Information processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410046214.2A CN103809972B (en) 2014-02-10 2014-02-10 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103809972A CN103809972A (en) 2014-05-21
CN103809972B true CN103809972B (en) 2018-03-27

Family

ID=50706798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410046214.2A Active CN103809972B (en) 2013-10-28 2014-02-10 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103809972B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090701A (en) * 2014-06-03 2014-10-08 联想(北京)有限公司 Information processing method and electronic equipment
CN110517184A (en) * 2019-07-25 2019-11-29 武汉蓝星科技股份有限公司 A kind of graphic display method and device based on screen layering

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6549218B1 (en) * 1999-03-31 2003-04-15 Microsoft Corporation Dynamic effects for computer display windows
CN102280096A (en) * 2011-07-15 2011-12-14 杭州米加科技有限公司 Method for combining image scaling and color space switching

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04308921A (en) * 1991-04-05 1992-10-30 Matsushita Electric Ind Co Ltd Multiwindow system
CN1319316C (en) * 2004-04-19 2007-05-30 华为技术有限公司 Method for sending window size adjustment information by receiving end in wireless link data transmission
CN100345407C (en) * 2004-10-22 2007-10-24 华为技术有限公司 Method for distributing wireless link window size dynamically
EP2485129A4 (en) * 2009-10-02 2014-07-16 Nec Corp INFORMATION TERMINAL, DISPLAY METHOD, AND NON-TRANSIENT COMPUTER-READABLE MEDIUM HAVING A PROGRAM STORED

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6549218B1 (en) * 1999-03-31 2003-04-15 Microsoft Corporation Dynamic effects for computer display windows
CN102280096A (en) * 2011-07-15 2011-12-14 杭州米加科技有限公司 Method for combining image scaling and color space switching

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
三星S4如何设置多窗口模式;IQIYI说明书;《http://jingyan.baidu.com/article/e4d08ffdc485560fd2f60dde.html》;20130531;第1-2页 *

Also Published As

Publication number Publication date
CN103809972A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
KR102454196B1 (en) Method for controlling display and electronic device supporting the same
KR101980990B1 (en) Exploiting frame to frame coherency in a sort-middle architecture
CN107925749B (en) Method and apparatus for adjusting the resolution of an electronic device
US9990692B2 (en) Systems and methods of partial frame buffer updating
US9269122B2 (en) First and second software stacks and discrete and integrated graphics processing units
US10235945B2 (en) Apparatus and method for controlling display in electronic device having processors
KR102251444B1 (en) Graphic processing unit, graphic processing system comprising the same, antialiasing method using the same
US20150332507A1 (en) Positioning of projected augmented reality content
WO2018120992A1 (en) Window rendering method and terminal
CN105074772A (en) Improved multisample antialiasing compression by using unreachable bit combinations
CN104571904B (en) A kind of information processing method and electronic equipment
CN109718554B (en) Real-time rendering method and device and terminal
US11748911B2 (en) Shader function based pixel count determination
CN103809972B (en) A kind of information processing method and electronic equipment
CN104571796B (en) Information processing method and electronic equipment
CN111722823A (en) Method and device for self-adapting screen resolution, storage medium and electronic equipment
KR20140063125A (en) Image processing method for enhancing image quality using different coefficients according to region and device there-of
CN108182656B (en) Image processing method and terminal
CN104571791A (en) Information processing method and electronic equipment
CN104571844B (en) A kind of information processing method and electronic equipment
CN113703653A (en) Image processing method, device, equipment and computer readable storage medium
CN104571799B (en) Information processing method and electronic equipment
CN104461480B (en) A kind of information processing method and electronic equipment
CN108389223B (en) Image processing method and terminal
US20140306977A1 (en) Image processing apparatus, image processing method, image processing system, and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant