CEF4Delphi/demos/Delphi_FMX_Mac/FMXExternalPumpBrowser/uCEFLoader.pas
Salvador Díaz Fau f764c39cc1 Replace the SetPEFlags code
Remove the outdated license text.
Use the main cef.inc file in all Delphi demos.
Fixed issue #493.
2023-11-26 19:28:28 +01:00

29 lines
525 B
ObjectPascal

unit uCEFLoader;
{$I ..\..\..\source\cef.inc}
interface
uses
uCEFApplicationCore;
implementation
procedure StartCEFSubprocess;
begin
GlobalCEFApp := TCefApplicationCore.Create;
GlobalCEFApp.WindowlessRenderingEnabled := True;
GlobalCEFApp.ExternalMessagePump := True;
GlobalCEFApp.MultiThreadedMessageLoop := False;
GlobalCEFApp.InitLibLocationFromArgs;
GlobalCEFApp.StartSubProcess;
end;
initialization
StartCEFSubprocess;
finalization
DestroyGlobalCEFApp;
end.