Title: [221571] trunk/Source/WebKit
Revision
221571
Author
[email protected]
Date
2017-09-03 23:03:01 -0700 (Sun, 03 Sep 2017)

Log Message

[WPE] Use the device scale factor value in WebPageCreationParameters
https://bugs.webkit.org/show_bug.cgi?id=175377

Reviewed by Michael Catanzaro.

* WebProcess/WebPage/AcceleratedDrawingArea.cpp:
(WebKit::AcceleratedDrawingArea::AcceleratedDrawingArea):
WebPageCreationParameters::deviceScaleFactor value should be used
to set the device scale factor on the given WebPage object. This
enables correctly leveraging the scale factor for the WPE port
which enters accelerated mode unconditionally and as such doesn't
wait for the backing store update that would provide that value
otherwise.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (221570 => 221571)


--- trunk/Source/WebKit/ChangeLog	2017-09-04 05:58:15 UTC (rev 221570)
+++ trunk/Source/WebKit/ChangeLog	2017-09-04 06:03:01 UTC (rev 221571)
@@ -1,3 +1,19 @@
+2017-09-03  Zan Dobersek  <[email protected]>
+
+        [WPE] Use the device scale factor value in WebPageCreationParameters
+        https://bugs.webkit.org/show_bug.cgi?id=175377
+
+        Reviewed by Michael Catanzaro.
+
+        * WebProcess/WebPage/AcceleratedDrawingArea.cpp:
+        (WebKit::AcceleratedDrawingArea::AcceleratedDrawingArea):
+        WebPageCreationParameters::deviceScaleFactor value should be used
+        to set the device scale factor on the given WebPage object. This
+        enables correctly leveraging the scale factor for the WPE port
+        which enters accelerated mode unconditionally and as such doesn't
+        wait for the backing store update that would provide that value
+        otherwise.
+
 2017-09-03  Brent Fulgham  <[email protected]>
 
         [WK2][iOS] Remove unnecessary IOHIDEventServiceFastPathUserClient access

Modified: trunk/Source/WebKit/WebProcess/WebPage/AcceleratedDrawingArea.cpp (221570 => 221571)


--- trunk/Source/WebKit/WebProcess/WebPage/AcceleratedDrawingArea.cpp	2017-09-04 05:58:15 UTC (rev 221570)
+++ trunk/Source/WebKit/WebProcess/WebPage/AcceleratedDrawingArea.cpp	2017-09-04 06:03:01 UTC (rev 221571)
@@ -63,6 +63,8 @@
 #endif
     if (!m_webPage.isVisible())
         suspendPainting();
+
+    m_webPage.corePage()->setDeviceScaleFactor(parameters.deviceScaleFactor);
 }
 
 void AcceleratedDrawingArea::setNeedsDisplay()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to