CEF4Delphi/demos/Delphi_FMX_Windows/FMXVirtualUIBrowser/uFMXVirtualUIBrowser_sp.pas
salvadordf 031eb58ad1 Added VirtualUI demos for Delphi and Lazarus
Added Delphi_VCL/VirtualUIBrowser
Added Delphi_FMX_Windows/FMXVirtualUIBrowser
Added Lazarus_Windows/VirtualUIBrowser
2022-10-15 19:29:11 +02:00

28 lines
721 B
ObjectPascal

unit uFMXVirtualUIBrowser_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.