You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-08-14 21:42:50 +02:00
Improved code comments in the SimpleOSRBrowser demo
Enable hardware acceleration in the SimpleOSRBrowser demo
This commit is contained in:
@@ -237,9 +237,10 @@ uses
|
|||||||
// 1- FormCloseQuery sets CanClose to the initial FCanClose value (False) and
|
// 1- FormCloseQuery sets CanClose to the initial FCanClose value (False) and
|
||||||
// calls chrmosr.CloseBrowser(True).
|
// calls chrmosr.CloseBrowser(True).
|
||||||
// 2- chrmosr.CloseBrowser(True) will trigger chrmosr.OnClose and we have to
|
// 2- chrmosr.CloseBrowser(True) will trigger chrmosr.OnClose and we have to
|
||||||
// set "Result" to false and CEF will destroy the internal browser immediately.
|
// set "aAction" to cbaClose and CEF will destroy the internal browser immediately.
|
||||||
|
// cbaClose is the default aAction value so this demo doesn't implement the OnClose event.
|
||||||
// 3- chrmosr.OnBeforeClose is triggered because the internal browser was destroyed.
|
// 3- chrmosr.OnBeforeClose is triggered because the internal browser was destroyed.
|
||||||
// Sets FCanClose := True and sends WM_CLOSE to the form.
|
// Sets FCanClose := True and sends WM_CLOSE to the form to close the demo.
|
||||||
|
|
||||||
procedure CreateGlobalCEFApp;
|
procedure CreateGlobalCEFApp;
|
||||||
begin
|
begin
|
||||||
@@ -247,7 +248,7 @@ begin
|
|||||||
GlobalCEFApp.WindowlessRenderingEnabled := True;
|
GlobalCEFApp.WindowlessRenderingEnabled := True;
|
||||||
GlobalCEFApp.EnableHighDPISupport := True;
|
GlobalCEFApp.EnableHighDPISupport := True;
|
||||||
GlobalCEFApp.TouchEvents := STATE_ENABLED;
|
GlobalCEFApp.TouchEvents := STATE_ENABLED;
|
||||||
//GlobalCEFApp.EnableGPU := True;
|
GlobalCEFApp.EnableGPU := True;
|
||||||
GlobalCEFApp.LogFile := 'debug.log';
|
GlobalCEFApp.LogFile := 'debug.log';
|
||||||
GlobalCEFApp.LogSeverity := LOGSEVERITY_VERBOSE;
|
GlobalCEFApp.LogSeverity := LOGSEVERITY_VERBOSE;
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 403,
|
"InternalVersion" : 404,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "102.0.10.0"
|
"Version" : "102.0.10.0"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user