diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/GraphicsLayerClient.h')
-rw-r--r-- | Source/WebCore/platform/graphics/GraphicsLayerClient.h | 10 |
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. |