mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-17 08:45:56 +01:00
688c68ab65
Added the FMXSkiaBrowser demo. It uses Skia4Delphi to show the web contents. https://github.com/skia4delphi/skia4delphi
28 lines
716 B
ObjectPascal
28 lines
716 B
ObjectPascal
unit uFMXSkiaBrowser_sp;
|
|
|
|
interface
|
|
|
|
uses
|
|
uCEFApplicationCore, uCEFInterfaces, uCEFTypes, uCEFConstants;
|
|
|
|
procedure CreateGlobalCEFApp;
|
|
|
|
implementation
|
|
|
|
procedure CreateGlobalCEFApp;
|
|
begin
|
|
GlobalCEFApp := TCefApplicationCore.Create;
|
|
GlobalCEFApp.WindowlessRenderingEnabled := True;
|
|
GlobalCEFApp.EnableHighDPISupport := True;
|
|
GlobalCEFApp.ExternalMessagePump := True;
|
|
GlobalCEFApp.MultiThreadedMessageLoop := False;
|
|
GlobalCEFApp.EnableGPU := True;
|
|
{$IFDEF DEBUG}
|
|
//GlobalCEFApp.LogFile := 'debug.log';
|
|
//GlobalCEFApp.LogSeverity := LOGSEVERITY_INFO;
|
|
{$ENDIF}
|
|
GlobalCEFApp.StartSubProcess;
|
|
end;
|
|
|
|
end.
|