1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-08-04 21:32:54 +02:00

Improved code comments in the SimpleOSRBrowser demo

Enable hardware acceleration in the SimpleOSRBrowser demo
This commit is contained in:
salvadordf
2022-06-21 11:02:30 +02:00
parent 09d8ec8669
commit 1afd635484
2 changed files with 5 additions and 4 deletions

View File

@@ -237,9 +237,10 @@ uses
// 1- FormCloseQuery sets CanClose to the initial FCanClose value (False) and
// calls chrmosr.CloseBrowser(True).
// 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.
// 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;
begin
@@ -247,7 +248,7 @@ begin
GlobalCEFApp.WindowlessRenderingEnabled := True;
GlobalCEFApp.EnableHighDPISupport := True;
GlobalCEFApp.TouchEvents := STATE_ENABLED;
//GlobalCEFApp.EnableGPU := True;
GlobalCEFApp.EnableGPU := True;
GlobalCEFApp.LogFile := 'debug.log';
GlobalCEFApp.LogSeverity := LOGSEVERITY_VERBOSE;

View File

@@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 403,
"InternalVersion" : 404,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "102.0.10.0"
}