summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/layers/LayerAndroid.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/android/layers/LayerAndroid.h')
-rw-r--r--Source/WebCore/platform/graphics/android/layers/LayerAndroid.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/layers/LayerAndroid.h b/Source/WebCore/platform/graphics/android/layers/LayerAndroid.h
index 3bab5ab..687f146 100644
--- a/Source/WebCore/platform/graphics/android/layers/LayerAndroid.h
+++ b/Source/WebCore/platform/graphics/android/layers/LayerAndroid.h
@@ -289,6 +289,16 @@ public:
int setHwAccelerated(bool hwAccelerated);
+ void setReplicatedLayer(LayerAndroid* layer) { m_replicatedLayer = layer; }
+ void setReplicatedLayerPosition(const FloatPoint& p) { m_replicatedLayerPosition = p; }
+ void setOriginalLayer(LayerAndroid* layer) { m_originalLayer = layer; }
+ bool hasReplicatedLayer() { return m_replicatedLayer; }
+ const TransformationMatrix* replicatedLayerDrawTransform() {
+ if (m_replicatedLayer)
+ return m_replicatedLayer->drawTransform();
+ return 0;
+ }
+
protected:
virtual void onDraw(SkCanvas*, SkScalar opacity, android::DrawExtra* extra, PaintStyle style);
virtual InvalidateFlags onSetHwAccelerated(bool hwAccelerated) { return InvalidateNone; }
@@ -381,6 +391,13 @@ private:
Surface* m_surface;
+ // link to a replicated layer (used e.g. for reflections)
+ LayerAndroid* m_replicatedLayer;
+ FloatPoint m_replicatedLayerPosition;
+ LayerAndroid* m_originalLayer;
+ // link to a mask layer
+ LayerAndroid* m_maskLayer;
+
typedef Layer INHERITED;
};