diff options
author | Marko Niemelä <marko.a.niemela@nokia.com> | 2012-01-18 12:47:52 +0200 |
---|---|---|
committer | Marko Niemelä <marko.a.niemela@nokia.com> | 2012-01-18 12:47:52 +0200 |
commit | 6c430da4db18b8d2811b3e10c936a8b0ba55e076 (patch) | |
tree | 01282f1080a5dd3e74dd19623cffb8a0c43b413b /src | |
parent | 0d69a19cf8341267d7d44b872452c241a9c568ee (diff) | |
download | qtgraphicaleffects-6c430da4db18b8d2811b3e10c936a8b0ba55e076.tar.gz |
DropShadow and Glow changed to use sourceproxy when draing original pixels
Diffstat (limited to 'src')
-rw-r--r-- | src/effects/DropShadow.qml | 12 | ||||
-rw-r--r-- | src/effects/Glow.qml | 12 |
2 files changed, 16 insertions, 8 deletions
diff --git a/src/effects/DropShadow.qml b/src/effects/DropShadow.qml index 5f2a43e..60b503c 100644 --- a/src/effects/DropShadow.qml +++ b/src/effects/DropShadow.qml @@ -66,7 +66,7 @@ Item { id: gaussianGlow GaussianGlow { anchors.fill: parent - source: rootItem.source + source: sourceProxy.output radius: rootItem.radius maximumRadius: rootItem.samples * 0.5 color: rootItem.color @@ -80,7 +80,7 @@ Item { id: fastGlow FastGlow { anchors.fill: parent - source: rootItem.source + source: sourceProxy.output blur: Math.pow(rootItem.radius / 64.0, 0.4) color: rootItem.color cached: rootItem.cached @@ -89,8 +89,12 @@ Item { } } - ShaderEffectSource { + SourceProxy { + id: sourceProxy + input: rootItem.source + } + ShaderEffect { anchors.fill: parent - sourceItem: rootItem.source + property variant source: sourceProxy.output } } diff --git a/src/effects/Glow.qml b/src/effects/Glow.qml index 8c65142..c93aa30 100644 --- a/src/effects/Glow.qml +++ b/src/effects/Glow.qml @@ -61,7 +61,7 @@ Item { id: gaussianGlow GaussianGlow { anchors.fill: parent - source: rootItem.source + source: sourceProxy.output radius: rootItem.radius maximumRadius: rootItem.samples * 0.5 color: rootItem.color @@ -75,7 +75,7 @@ Item { id: fastGlow FastGlow { anchors.fill: parent - source: rootItem.source + source: sourceProxy.output blur: Math.pow(rootItem.radius / 64.0, 0.4) color: rootItem.color cached: rootItem.cached @@ -84,8 +84,12 @@ Item { } } - ShaderEffectSource { + SourceProxy { + id: sourceProxy + input: rootItem.source + } + ShaderEffect { anchors.fill: parent - sourceItem: rootItem.source + property variant source: sourceProxy.output } } |