aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_evas_snapshot.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-03-17 11:24:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-04-14 11:26:43 +0900
commit1336b2d9e05f2c6fafe109af49ea56739fe77fe3 (patch)
tree8f15b9dbf98664934c3b3076dce2e0b867c816c2 /src/bin/elementary/test_evas_snapshot.c
parentevas filters: Use obscured region in box blur (SW) (diff)
downloadefl-1336b2d9e05f2c6fafe109af49ea56739fe77fe3.tar.gz
evas filters: Expand snapshot regions by blur radius
When using a snapshot object we have access to exactly all the pixels below it inside the snapshot surface. So, in order to produce a nice blur, it is necessary to expand this snapshot and then clip it otherwise the edges will look a bit ugly. Unfortunately, there are still places where blurs didn't look so good, as objects below an opaque region would never get rendered into the snapshot object. So the edges, inside a snapshot object, around an opaque region would have blur artifacts. This fixes that by shrinking the cutout regions by the radius of the filter. Eg for blur this is the blur radius. The test case in elm_test can exhibit this fix very clearly: a red glow would be visible around the opaque rectangle, but with these changes we instead see the blurry edges of the objects below the rectangle.
Diffstat (limited to 'src/bin/elementary/test_evas_snapshot.c')
-rw-r--r--src/bin/elementary/test_evas_snapshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/elementary/test_evas_snapshot.c b/src/bin/elementary/test_evas_snapshot.c
index 26d76b4c66..d2e87862b3 100644
--- a/src/bin/elementary/test_evas_snapshot.c
+++ b/src/bin/elementary/test_evas_snapshot.c
@@ -20,7 +20,7 @@ static const int rnd[] = {
static const char *filter =
"padding_set {0}"
- "fill { color = '#0123' }"
+ "fill { color = 'red' }"
"blur { 5 }"
"print ('Evaluating filter: ' .. input.width .. 'x' .. input.height)"
;