Changeset 245394 in webkit


Ignore:
Timestamp:
May 16, 2019 4:48:52 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[WPE] Rendering on a HiDPI display looks scaled up instead of rendered at 2x
https://bugs.webkit.org/show_bug.cgi?id=185764

Patch by Ryan Walklin <ryan@testtoast.com> on 2019-05-16
Reviewed by Carlos Garcia Campos.

Add a function to the wpe_view_backend_client struct which accepts a device scale factor
configured through wpe_view_backend_dispatch_set_device_scale_factor() and calls
setIntrinsicDeviceScaleFactor for the the current View.Page object. The
function definition has been added in libwpe 1.3.

  • UIProcess/API/wpe/WPEView.cpp:

(WKWPE::m_backend): Add set_device_scale_factor implementation declared by libwpe.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r245366 r245394  
     12019-05-16  Ryan Walklin  <ryan@testtoast.com>
     2
     3        [WPE] Rendering on a HiDPI display looks scaled up instead of rendered at 2x
     4        https://bugs.webkit.org/show_bug.cgi?id=185764
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Add a function to the wpe_view_backend_client struct which accepts a device scale factor
     9        configured through wpe_view_backend_dispatch_set_device_scale_factor() and calls
     10        setIntrinsicDeviceScaleFactor for the the current View.Page object. The
     11        function definition has been added in libwpe 1.3.
     12
     13        * UIProcess/API/wpe/WPEView.cpp:
     14        (WKWPE::m_backend): Add set_device_scale_factor implementation declared by libwpe.
     15
    1162019-05-15  Devin Rousso  <drousso@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/API/wpe/WPEView.cpp

    r242788 r245394  
    101101            view.setViewState(flags);
    102102        },
    103         // padding
    104         nullptr,
    105         nullptr,
     103        // get_accessible
     104        nullptr,
     105#if WPE_CHECK_VERSION(1, 3, 0)
     106        // set_device_scale_factor
     107        [](void* data, float scale)
     108        {
     109            auto& view = *reinterpret_cast<View*>(data);
     110            view.page().setIntrinsicDeviceScaleFactor(scale);
     111        },
     112#else
     113        nullptr,
     114#endif // WPE_CHECK_VERSION(1, 3, 0)
     115        // padding,
    106116        nullptr
    107117    };
Note: See TracChangeset for help on using the changeset viewer.