summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/PaintLayerOperation.cpp
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2011-01-16 18:27:55 -0800
committerNicolas Roard <nicolas@android.com>2011-01-17 13:21:39 -0800
commit1a8134698fa0b94387482fb4b45341faa8fe6a38 (patch)
treebdd06ce24713cce2168356f2289665f88a732492 /WebCore/platform/graphics/android/PaintLayerOperation.cpp
parent2a72fb6cf823503e177d0ff93ee6fac5df9f19f8 (diff)
downloadexternal_webkit-1a8134698fa0b94387482fb4b45341faa8fe6a38.zip
external_webkit-1a8134698fa0b94387482fb4b45341faa8fe6a38.tar.gz
external_webkit-1a8134698fa0b94387482fb4b45341faa8fe6a38.tar.bz2
Implement re-scaling for layers
Change-Id: I1f998387831207d00f27945ee4e456f81ff6f6e2 Change-Id: I7efcccfd9a4374061300058d4c48fa82a973829a
Diffstat (limited to 'WebCore/platform/graphics/android/PaintLayerOperation.cpp')
-rw-r--r--WebCore/platform/graphics/android/PaintLayerOperation.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/PaintLayerOperation.cpp b/WebCore/platform/graphics/android/PaintLayerOperation.cpp
index a3ef148..dd81d9a 100644
--- a/WebCore/platform/graphics/android/PaintLayerOperation.cpp
+++ b/WebCore/platform/graphics/android/PaintLayerOperation.cpp
@@ -50,7 +50,14 @@ SkLayer* PaintLayerOperation::baseLayer()
return m_layer->getRootLayer();
}
-bool PaintLayerFilter::check(QueuedOperation* operation)
+LayerTexture* PaintLayerOperation::texture()
+{
+ if (!m_layer)
+ return 0;
+ return m_layer->texture();
+}
+
+bool PaintLayerBaseFilter::check(QueuedOperation* operation)
{
if (operation->type() == QueuedOperation::PaintLayer) {
PaintLayerOperation* op = static_cast<PaintLayerOperation*>(operation);
@@ -59,3 +66,13 @@ bool PaintLayerFilter::check(QueuedOperation* operation)
}
return false;
}
+
+bool PaintLayerTextureFilter::check(QueuedOperation* operation)
+{
+ if (operation->type() == QueuedOperation::PaintLayer) {
+ PaintLayerOperation* op = static_cast<PaintLayerOperation*>(operation);
+ if (op->texture() == m_texture)
+ return true;
+ }
+ return false;
+}