diff options
Diffstat (limited to 'WebCore/platform/graphics/android/MediaLayer.h')
-rw-r--r-- | WebCore/platform/graphics/android/MediaLayer.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/WebCore/platform/graphics/android/MediaLayer.h b/WebCore/platform/graphics/android/MediaLayer.h index 1944512..dec6427 100644 --- a/WebCore/platform/graphics/android/MediaLayer.h +++ b/WebCore/platform/graphics/android/MediaLayer.h @@ -19,22 +19,15 @@ #if USE(ACCELERATED_COMPOSITING) -#include "RefPtr.h" -#include "DoubleBufferedTexture.h" +#include "MediaTexture.h" #include "LayerAndroid.h" -#include <utils/RefBase.h> +namespace android { + class SurfaceTexture; +} namespace WebCore { -class MediaTexture : public DoubleBufferedTexture, - public android::LightRefBase<MediaTexture> { - -public: - MediaTexture(EGLContext sharedContext) : DoubleBufferedTexture(sharedContext) { }; -}; - - class MediaLayer : public LayerAndroid { public: @@ -56,14 +49,21 @@ public: void invertContents(bool invertContent) { m_isContentInverted = invertContent; } + // functions to manipulate secondary layers for video playback + ANativeWindow* acquireNativeWindowForVideo(); + void setWindowDimensionsForVideo(const ANativeWindow* window, const SkRect& dimensions); + void releaseNativeWindowForVideo(ANativeWindow* window); + private: - // GL textures management + // Primary GL texture variables MediaTexture* m_bufferedTexture; - TextureInfo* m_currentTextureInfo; bool m_isContentInverted; + + // Video texture variables + VideoTexture* m_videoTexture; }; } // namespace WebCore |