[webkit-gtk] How to enable or disable hardware acceleration ?

406643764 406643764 at qq.com
Sat Jan 7 08:55:13 PST 2023


thanks. it work.
 


406643764
406643764 at qq.com



 




------------------ Original ------------------
From: "Michael Catanzaro"<mcatanzaro at redhat.com>; 
Date: 2023年1月8日(星期天) 凌晨0:13
To: "406643764"<406643764 at qq.com>; 
Cc: "webkit-gtk"<webkit-gtk at lists.webkit.org>; 
Subject: Re: [webkit-gtk] How to enable or disable hardware acceleration ?



On Sat, Jan 7 2023 at 09:05:06 PM +0800, 406643764 <406643764 at qq.com> 
wrote:
> So how to enable or disable hardware acceleration ?

Hi, use webkit_settings_set_hardware_acceleration_policy().

You can also use WEBKIT_FORCE_COMPOSITING_MODE=1 or 
WEBKIT_DISABLE_COMPOSITING_MODE=1 for test purposes.

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20230108/1807be16/attachment-0001.htm>


More information about the webkit-gtk mailing list