CEF4Delphi/demos/Delphi_FMX_Windows/FMXVirtualUIBrowser/uFMXVirtualUIBrowser_sp.pas

27 lines
670 B
ObjectPascal
Raw Normal View History

unit uFMXVirtualUIBrowser_sp;
interface
uses
uCEFApplicationCore, uCEFInterfaces, uCEFTypes, uCEFConstants;
procedure CreateGlobalCEFApp;
implementation
procedure CreateGlobalCEFApp;
begin
GlobalCEFApp := TCefApplicationCore.Create;
GlobalCEFApp.WindowlessRenderingEnabled := 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.