Changeset 253974 in webkit
- Timestamp:
- Jan 2, 2020 1:04:54 AM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r253968 r253974 1 2020-01-02 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] Make ondemand hardware acceleration policy never leave AC mode 4 https://bugs.webkit.org/show_bug.cgi?id=205558 5 6 Reviewed by Sergio Villar Senin. 7 8 We still enter AC mode on demand but we never leave it for the same drawing area. This avoids scrolling 9 performance problems with some websites that start small accelerated animation while scrolling (like WebKit 10 bugzilla review tool), due to constant enter/leave AC mode. 11 12 * UIProcess/API/glib/WebKitSettings.cpp: 13 (webkit_settings_class_init): Update API documentation. 14 * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp: 15 (WebKit::DrawingAreaCoordinatedGraphics::enterAcceleratedCompositingMode): Force AC mode the first time we enter it. 16 1 17 2019-12-22 Jeff Miller <jeffm@apple.com> 2 18 -
trunk/Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp
r251220 r253974 1442 1442 * The #WebKitHardwareAccelerationPolicy to decide how to enable and disable 1443 1443 * hardware acceleration. The default value %WEBKIT_HARDWARE_ACCELERATION_POLICY_ON_DEMAND 1444 * enables the hardware acceleration when the web contents request it , disabling it again1445 * when no longer needed.It's possible to enforce hardware acceleration to be always enabled1444 * enables the hardware acceleration when the web contents request it. 1445 * It's possible to enforce hardware acceleration to be always enabled 1446 1446 * by using %WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS. And it's also possible to disable it 1447 1447 * completely using %WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER. Note that disabling hardware -
trunk/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp
r253744 r253974 558 558 void DrawingAreaCoordinatedGraphics::enterAcceleratedCompositingMode(GraphicsLayer* graphicsLayer) 559 559 { 560 #if PLATFORM(GTK) 561 if (!m_alwaysUseCompositing) { 562 m_webPage.corePage()->settings().setForceCompositingMode(true); 563 m_alwaysUseCompositing = true; 564 } 565 #endif 560 566 m_discardPreviousLayerTreeHostTimer.stop(); 561 567
Note: See TracChangeset
for help on using the changeset viewer.