diff options
author | Steve Block <steveblock@google.com> | 2011-05-25 19:08:45 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:51:31 +0100 |
commit | 2bde8e466a4451c7319e3a072d118917957d6554 (patch) | |
tree | 28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Source/WebCore/platform/graphics/texmap | |
parent | 6939c99b71d9372d14a0c74a772108052e8c48c8 (diff) | |
download | external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2 |
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Source/WebCore/platform/graphics/texmap')
5 files changed, 11 insertions, 19 deletions
diff --git a/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp b/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp index 4698239..760ba6c 100644 --- a/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp +++ b/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp @@ -336,7 +336,7 @@ void GraphicsLayerTextureMapper::setContentsToMedia(PlatformLayer* media) notifyChange(TextureMapperNode::ContentChange); m_pendingContent.contentType = media ? TextureMapperNode::MediaContentType : TextureMapperNode::HTMLContentType; if (media) - m_pendingContent.media = static_cast<TextureMapperVideoLayer*>(media); + m_pendingContent.media = static_cast<TextureMapperMediaLayer*>(media); else m_pendingContent.media = 0; } @@ -366,13 +366,6 @@ void GraphicsLayerTextureMapper::syncCompositingState() } /* \reimp (GraphicsLayer.h) - */ -NativeLayer GraphicsLayerTextureMapper::nativeLayer() const -{ - return m_node.get(); -} - -/* \reimp (GraphicsLayer.h) */ PlatformLayer* GraphicsLayerTextureMapper::platformLayer() const { diff --git a/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h b/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h index 47a27c6..dcf4938 100644 --- a/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h +++ b/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h @@ -81,7 +81,6 @@ public: virtual void syncCompositingState(); virtual void syncCompositingStateForThisLayerOnly(); virtual void setName(const String& name); - virtual NativeLayer nativeLayer() const; virtual PlatformLayer* platformLayer() const; virtual bool addAnimation(const KeyframeValueList&, const IntSize& /*boxSize*/, const Animation*, const String& /*keyframesName*/, double /*timeOffset*/) { return false; } diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapper.h b/Source/WebCore/platform/graphics/texmap/TextureMapper.h index 589fda1..8e46e3c 100644 --- a/Source/WebCore/platform/graphics/texmap/TextureMapper.h +++ b/Source/WebCore/platform/graphics/texmap/TextureMapper.h @@ -31,6 +31,7 @@ #include "IntRect.h" #include "IntSize.h" #include "TransformationMatrix.h" +#include <wtf/UnusedParam.h> /* TextureMapper is a mechanism that enables hardware acceleration of CSS animations (accelerated compositing) without @@ -68,7 +69,7 @@ public: return beginPaint(IntRect(0, 0, size().width(), size().height())); } virtual void setContentsToImage(Image*) = 0; - virtual bool save(const String& filename) { return false; } + virtual bool save(const String&) { return false; } inline void lock() { ++m_lockCount; } inline void unlock() { --m_lockCount; } @@ -101,6 +102,7 @@ public: virtual void bindSurface(BitmapTexture* surface) = 0; virtual void paintToTarget(const BitmapTexture& texture, const IntSize&, const TransformationMatrix& matrix, float opacity, const IntRect& visibleRect) { + UNUSED_PARAM(visibleRect); drawTexture(texture, IntRect(0, 0, texture.contentSize().width(), texture.contentSize().height()), matrix, opacity, 0); } diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapperNode.h b/Source/WebCore/platform/graphics/texmap/TextureMapperNode.h index 9694043..c5decc1 100644 --- a/Source/WebCore/platform/graphics/texmap/TextureMapperNode.h +++ b/Source/WebCore/platform/graphics/texmap/TextureMapperNode.h @@ -20,19 +20,19 @@ #ifndef TextureMapperNode_h #define TextureMapperNode_h -#include "CurrentTime.h" #include "FloatRect.h" #include "GraphicsContext.h" #include "GraphicsLayer.h" -#include "HashMap.h" #include "Image.h" -#include "RefCounted.h" #include "TextureMapper.h" #include "TextureMapperPlatformLayer.h" #include "Timer.h" #include "TransformOperations.h" #include "TranslateTransformOperation.h" #include "UnitBezier.h" +#include <wtf/CurrentTime.h> +#include <wtf/HashMap.h> +#include <wtf/RefCounted.h> namespace WebCore { @@ -94,7 +94,7 @@ public: ContentType contentType; RefPtr<Image> image; - TextureMapperVideoLayer* media; + TextureMapperMediaLayer* media; ContentData() : needsDisplay(false) diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h b/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h index 2a38b90..d2d646a 100644 --- a/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h +++ b/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h @@ -43,7 +43,7 @@ class TextureMapperPlatformLayer { public: enum Type { ContentLayer, - VideoLayer + MediaLayer }; virtual Type layerType() const = 0; @@ -66,13 +66,11 @@ public: virtual Type layerType() const { return ContentLayer; } }; -#if ENABLE(VIDEO) -class TextureMapperVideoLayer : public TextureMapperPlatformLayer { +class TextureMapperMediaLayer : public TextureMapperPlatformLayer { public: virtual void paint(GraphicsContext*) = 0; - virtual Type layerType() const { return VideoLayer; } + virtual Type layerType() const { return MediaLayer; } }; -#endif } |