summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/VideoLayerManager.h
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-12-12 14:39:04 -0800
committerTeng-Hui Zhu <ztenghui@google.com>2011-12-13 11:12:40 -0800
commitd649883ce629c0de432e075254b517a50685792e (patch)
tree4fcce956db39661a16d5e002715b8ef3ad772feb /Source/WebCore/platform/graphics/android/VideoLayerManager.h
parentd07292c75082db457ad498747c0b05d38a14e8d7 (diff)
downloadexternal_webkit-d649883ce629c0de432e075254b517a50685792e.zip
external_webkit-d649883ce629c0de432e075254b517a50685792e.tar.gz
external_webkit-d649883ce629c0de432e075254b517a50685792e.tar.bz2
Tap to play/pause for html5 video with UI
bug:4232704 Change-Id: Ice99bc0fa19de93627fe8ffb91085838fa682315
Diffstat (limited to 'Source/WebCore/platform/graphics/android/VideoLayerManager.h')
-rw-r--r--Source/WebCore/platform/graphics/android/VideoLayerManager.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/VideoLayerManager.h b/Source/WebCore/platform/graphics/android/VideoLayerManager.h
index de2dafc..a427269 100644
--- a/Source/WebCore/platform/graphics/android/VideoLayerManager.h
+++ b/Source/WebCore/platform/graphics/android/VideoLayerManager.h
@@ -34,6 +34,17 @@
namespace WebCore {
+enum IconState {
+ Registered,
+ PlayIconShown,
+ PauseIconShown
+};
+
+enum IconType {
+ PlayIcon,
+ PauseIcon
+};
+
// Every video layer can use its uniqueId to query VideoLayerManager about such
// info globally.
struct VideoLayerInfo {
@@ -41,6 +52,9 @@ struct VideoLayerInfo {
int videoSize; // The size of the video.
int timeStamp; // Used to decide which VideoLayerInfo is the oldest one.
GLfloat surfaceMatrix[16];
+
+ double lastIconShownTime;
+ IconState iconState;
};
@@ -68,6 +82,7 @@ public:
// Delete the GL textures
void deleteUnusedTextures();
+ double drawIcon(const int layerId, IconType type);
private:
// Get the sum of all the video size stored in m_videoLayerInfoMap.
int getTotalMemUsage();