You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Set the GlobalUseSkiaRasterWhenAvailable and GlobalUseMetal values in FMXSkiaBrowser
This commit is contained in:
@@ -42,6 +42,7 @@ uses
|
||||
System.StartUpCopy,
|
||||
{$ENDIF }
|
||||
FMX.Forms,
|
||||
FMX.Types,
|
||||
Skia.FMX, // This unit comes from the Skia4Delphi project
|
||||
uCEFApplication,
|
||||
uCEFFMXWorkScheduler,
|
||||
@@ -56,7 +57,9 @@ uses
|
||||
{$ENDIF}
|
||||
|
||||
begin
|
||||
// Enable Skia usage.
|
||||
// Enable Skia usage.
|
||||
GlobalUseMetal := True;
|
||||
GlobalUseSkiaRasterWhenAvailable := False;
|
||||
GlobalUseSkia := True;
|
||||
// GlobalCEFApp creation and initialization moved to a different unit to fix the memory leak described in the bug #89
|
||||
// https://github.com/salvadordf/CEF4Delphi/issues/89
|
||||
|
||||
Reference in New Issue
Block a user