summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-24 16:36:50 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-02-24 16:36:50 +0100
commitad0d549d4cc13433f77c1ac8f0ab379c83d93f28 (patch)
treeb34b0daceb7c8e7fdde4b4ec43650ab7caadb0a9 /Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
parent03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (diff)
downloadqtwebkit-ad0d549d4cc13433f77c1ac8f0ab379c83d93f28.tar.gz
Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790)
Diffstat (limited to 'Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h')
-rw-r--r--Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h30
1 files changed, 19 insertions, 11 deletions
diff --git a/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h b/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
index 172fdda24..07f378629 100644
--- a/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
+++ b/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.h
@@ -24,7 +24,7 @@
#include "GraphicsLayer.h"
#include "GraphicsLayerClient.h"
#include "Image.h"
-#include "TextureMapperNode.h"
+#include "TextureMapperLayer.h"
#if ENABLE(WEBGL)
#include "GraphicsContext3D.h"
@@ -32,12 +32,12 @@
namespace WebCore {
-class TextureMapperNode;
+class TextureMapperLayer;
class BitmapTexture;
class TextureMapper;
class GraphicsLayerTextureMapper : public GraphicsLayer {
- friend class TextureMapperNode;
+ friend class TextureMapperLayer;
public:
GraphicsLayerTextureMapper(GraphicsLayerClient*);
@@ -64,8 +64,6 @@ public:
virtual void setPreserves3D(bool b);
virtual void setMasksToBounds(bool b);
virtual void setDrawsContent(bool b);
- virtual void setBackgroundColor(const Color&);
- virtual void clearBackgroundColor();
virtual void setContentsOpaque(bool b);
virtual void setBackfaceVisibility(bool b);
virtual void setOpacity(float opacity);
@@ -77,10 +75,9 @@ public:
virtual void syncCompositingState(const FloatRect&);
virtual void syncCompositingStateForThisLayerOnly();
virtual void setName(const String& name);
- virtual PlatformLayer* platformLayer() const;
+ virtual PlatformLayer* platformLayer() const { return 0; }
- void notifyChange(TextureMapperNode::ChangeMask changeMask);
- inline TextureMapperNode::ContentData& pendingContent() { return m_pendingContent; }
+ void notifyChange(TextureMapperLayer::ChangeMask);
inline int changeMask() const { return m_changeMask; }
void didSynchronize();
@@ -88,13 +85,24 @@ public:
virtual void pauseAnimation(const String&, double);
virtual void removeAnimation(const String&);
- TextureMapperNode* node() const { return m_node.get(); }
+ TextureMapperLayer* layer() const { return m_layer.get(); }
+ TextureMapperPlatformLayer* contentsLayer() const { return m_contentsLayer; }
+ bool needsDisplay() const { return m_needsDisplay; }
+ IntRect needsDisplayRect() const { return enclosingIntRect(m_needsDisplayRect); }
+
+#if ENABLE(CSS_FILTERS)
+ virtual bool setFilters(const FilterOperations&);
+#endif
private:
- OwnPtr<TextureMapperNode> m_node;
+ OwnPtr<TextureMapperLayer> m_layer;
+ RefPtr<TextureMapperBackingStore> m_compositedImage;
+ RefPtr<Image> m_image;
bool m_syncQueued;
int m_changeMask;
- TextureMapperNode::ContentData m_pendingContent;
+ bool m_needsDisplay;
+ TextureMapperPlatformLayer* m_contentsLayer;
+ FloatRect m_needsDisplayRect;
TextureMapperAnimations m_animations;
void animationStartedTimerFired(Timer<GraphicsLayerTextureMapper>*);
Timer<GraphicsLayerTextureMapper> m_animationStartedTimer;