diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-05-31 15:24:42 -0700 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-06-01 13:41:19 -0700 |
commit | 0bc8a6f1de48da432733e2bd21c5c793b7a0393d (patch) | |
tree | 418a64a17bcfcfd3934e0a15896b19f1a0605989 /Source/WebCore/dom/TouchEvent.cpp | |
parent | a2f591386876bb23c1e69ad0bf7b0db72bf2865a (diff) | |
download | external_webkit-0bc8a6f1de48da432733e2bd21c5c793b7a0393d.zip external_webkit-0bc8a6f1de48da432733e2bd21c5c793b7a0393d.tar.gz external_webkit-0bc8a6f1de48da432733e2bd21c5c793b7a0393d.tar.bz2 |
Support the screen shot while the video is paused.
Basically, the GL textures generated for the surface texture will be used
for showing the screenshot.
Surface texture will be recycled every time a new video starts.
But GL textures will be recycled either when running out of memory bound,
or when the mediaplayer is deleted.
1. Add the VideoLayerManager as a static instance to manage the info of textures
allocated for the screenshot. The basic info will be added into the manager
while the video is played and prepared. During the draw time, the matirx info
will be updated, too.
2. When there are too many screenshots are created, then we will discard the
oldest one and just show the grey static rectangle to replace the screenshot.
The corresponding framework change is 112501.
Change-Id: Ifea60c96532500f9c93062cc97f7c4ef978046b0
Diffstat (limited to 'Source/WebCore/dom/TouchEvent.cpp')
0 files changed, 0 insertions, 0 deletions