[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-mobile]
From:       Sebastian_Kügler <sebas () kde ! org>
Date:       2011-11-30 21:55:26
Message-ID: 20111130215526.5A287A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit c23f1872ece3613441883cfee394994b246bb12f by Sebastian K=C3=BCgle=
r.
Committed on 30/11/2011 at 22:51.
Pushed by sebas into branch 'master'.

don't smooth image while scaling the webpage during zoom

I'm not sure if this is *really* needed. Rendering is disabled, so the
webpage won't do layout updates which makes for the biggest performance
gain already. The image still seems scaled smoothly though, so we
disable that as well and just scale the frames during zoom animations
coarsely.

There's no visible performance gain on my laptop, but let's try anyway
if it squeezes out a few more FPS on devices.

M  +10   -0    applications/webbrowser/package/contents/ui/content/Flickabl=
eWebView.qml

http://commits.kde.org/plasma-mobile/c23f1872ece3613441883cfee394994b246bb1=
2f

diff --git a/applications/webbrowser/package/contents/ui/content/FlickableW=
ebView.qml b/applications/webbrowser/package/contents/ui/content/FlickableW=
ebView.qml
index ac30105..cf24e65 100644
--- a/applications/webbrowser/package/contents/ui/content/FlickableWebView.=
qml
+++ b/applications/webbrowser/package/contents/ui/content/FlickableWebView.=
qml
@@ -179,6 +179,11 @@ Flickable {
                 property: "renderingEnabled"
                 value: false
             }
+            PropertyAction {
+                target: flickable
+                property: "smooth"
+                value: false
+            }
             ParallelAnimation {
                 NumberAnimation {
                     id: scaleAnim
@@ -227,6 +232,11 @@ Flickable {
                 property: "renderingEnabled"
                 value: true
             }
+            PropertyAction {
+                target: flickable
+                property: "smooth"
+                value: true
+            }
         }
         onZoomTo: doZoom(zoom,centerX,centerY)
     }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic