mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-15 15:55:56 +01:00
27 lines
670 B
ObjectPascal
27 lines
670 B
ObjectPascal
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.
|