Index: Source/WebKit/chromium/src/WebMediaPlayerClientImpl.h |
diff --git a/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.h b/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.h |
index 32e3c4d650c61d14e723ce8f32525c19e2e26b92..242c79184f7d0b0ec7b9ef44c798313afd559eda 100644 |
--- a/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.h |
+++ b/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.h |
@@ -35,6 +35,11 @@ |
#include "AudioSourceProvider.h" |
#include "MediaPlayerPrivate.h" |
+#if defined(OS_ANDROID) |
+#include "GrTexture.h" |
+#include "SkRefCnt.h" |
+#include "SkBitmap.h" |
+#endif |
#include "WebAudioSourceProviderClient.h" |
#include "WebMediaPlayerClient.h" |
#include <wtf/OwnPtr.h> |
@@ -171,6 +176,15 @@ private: |
bool acceleratedRenderingInUse(); |
#endif |
+#if defined(OS_ANDROID) |
+ // FIXME: This path "only works" on Android. It is a workaround for the problem that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES |
+ // texture internally. It should be removed and replaced by the normal paint path. |
+ // https://code.google.com/p/skia/issues/detail?id=1189 |
+ void paintOnAndroid(WebCore::GraphicsContext* context, WebCore::GraphicsContext3D* context3D, const WebCore::IntRect& rect, uint8_t alpha); |
+ SkAutoTUnref<GrTexture> m_texture; |
+ SkBitmap m_bitmap; |
+#endif |
+ |
WebCore::MediaPlayer* m_mediaPlayer; |
OwnPtr<WebMediaPlayer> m_webMediaPlayer; |
WebCore::KURL m_url; |