Changeset 245394 in webkit
- Timestamp:
- May 16, 2019 4:48:52 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r245366 r245394 1 2019-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 1 16 2019-05-15 Devin Rousso <drousso@apple.com> 2 17 -
trunk/Source/WebKit/UIProcess/API/wpe/WPEView.cpp
r242788 r245394 101 101 view.setViewState(flags); 102 102 }, 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, 106 116 nullptr 107 117 };
Note: See TracChangeset
for help on using the changeset viewer.