summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/GraphicsLayerClient.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-10-18 10:55:06 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-18 10:55:06 +0200
commitee4c86d1990a9e26277a6948e7027ad8d525ebfa (patch)
tree1e2d3408cd097606571f40ab63353c27bcb7dd5c /Source/WebCore/platform/graphics/GraphicsLayerClient.h
parentd882bec96d0d30aeeda2141bfadfca7f038ee862 (diff)
downloadqtwebkit-ee4c86d1990a9e26277a6948e7027ad8d525ebfa.tar.gz
Imported WebKit commit 795dcd25a9649fccaf1c9b685f6e2ffedaf7e620 (http://svn.webkit.org/repository/webkit/trunk@131718)
New snapshot that includes the return of -fkeep-memory at link time to reduce memory pressure as well as modularized documentation
Diffstat (limited to 'Source/WebCore/platform/graphics/GraphicsLayerClient.h')
-rw-r--r--Source/WebCore/platform/graphics/GraphicsLayerClient.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/GraphicsLayerClient.h b/Source/WebCore/platform/graphics/GraphicsLayerClient.h
index 7efee0e65..3e105ce6b 100644
--- a/Source/WebCore/platform/graphics/GraphicsLayerClient.h
+++ b/Source/WebCore/platform/graphics/GraphicsLayerClient.h
@@ -30,11 +30,12 @@
namespace WebCore {
+class FloatPoint;
class GraphicsContext;
class GraphicsLayer;
class IntPoint;
class IntRect;
-class FloatPoint;
+class TransformationMatrix;
enum GraphicsLayerPaintingPhaseFlags {
GraphicsLayerPaintBackground = (1 << 0),
@@ -66,9 +67,16 @@ public:
// to appear on the screen.
virtual void notifyFlushRequired(const GraphicsLayer*) = 0;
+ // Notification that this layer requires a flush before the next display refresh.
+ virtual void notifyFlushBeforeDisplayRefresh(const GraphicsLayer*) { }
+
virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& inClip) = 0;
virtual void didCommitChangesForLayer(const GraphicsLayer*) const { }
+ // Provides current transform (taking transform-origin and animations into account). Input matrix has been
+ // initialized to identity already. Returns false if the layer has no transform.
+ virtual bool getCurrentTransform(const GraphicsLayer*, TransformationMatrix&) const { return false; }
+
// Multiplier for backing store size, related to high DPI.
virtual float deviceScaleFactor() const { return 1; }
// Page scale factor.