summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore/rendering/RenderVideo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/WebCore/rendering/RenderVideo.h')
-rw-r--r--src/3rdparty/webkit/WebCore/rendering/RenderVideo.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/3rdparty/webkit/WebCore/rendering/RenderVideo.h b/src/3rdparty/webkit/WebCore/rendering/RenderVideo.h
index 43c1e7b..1c7b259 100644
--- a/src/3rdparty/webkit/WebCore/rendering/RenderVideo.h
+++ b/src/3rdparty/webkit/WebCore/rendering/RenderVideo.h
@@ -33,6 +33,9 @@
namespace WebCore {
class HTMLMediaElement;
+#if USE(ACCELERATED_COMPOSITING)
+class GraphicsLayer;
+#endif
class RenderVideo : public RenderMedia {
public:
@@ -41,6 +44,9 @@ public:
virtual const char* renderName() const { return "RenderVideo"; }
+ virtual bool requiresLayer() const { return true; }
+ virtual bool isVideo() const { return true; }
+
virtual void paintReplaced(PaintInfo& paintInfo, int tx, int ty);
virtual void layout();
@@ -51,9 +57,16 @@ public:
virtual void calcPrefWidths();
void videoSizeChanged();
+ IntRect videoBox() const;
void updateFromElement();
+#if USE(ACCELERATED_COMPOSITING)
+ bool supportsAcceleratedRendering() const;
+ virtual void acceleratedRenderingStateChanged();
+ GraphicsLayer* videoGraphicsLayer() const;
+#endif
+
protected:
virtual void intrinsicSizeChanged() { videoSizeChanged(); }
@@ -64,8 +77,6 @@ private:
bool isWidthSpecified() const;
bool isHeightSpecified() const;
- IntRect videoBox() const;
-
void updatePlayer();
};