From 1afd6354849bf97cb5ba8f1f119871363b56b525 Mon Sep 17 00:00:00 2001 From: salvadordf Date: Tue, 21 Jun 2022 11:02:30 +0200 Subject: [PATCH] Improved code comments in the SimpleOSRBrowser demo Enable hardware acceleration in the SimpleOSRBrowser demo --- demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas | 7 ++++--- update_CEF4Delphi.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas b/demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas index 6451185b..46f884b3 100644 --- a/demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas +++ b/demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas @@ -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; diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json index ccc5e5d5..a3d8d0d0 100644 --- a/update_CEF4Delphi.json +++ b/update_CEF4Delphi.json @@ -2,7 +2,7 @@ "UpdateLazPackages" : [ { "ForceNotify" : true, - "InternalVersion" : 403, + "InternalVersion" : 404, "Name" : "cef4delphi_lazarus.lpk", "Version" : "102.0.10.0" }