You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- The CEF helper process has been renamed from UnrealCEFSubprocess to EpicWebHelper - Support for accelerated rendering from CEF has been added (using GPU->GPU texture copies). This works for the Standalone renderer in DX11/macOS-OpenGL and in the D3D11 RHI renderer, otherwise falls back to the default CPU texture copy mode. Accelerated paint can be disabled by adding "-nocefaccelpaint" to the commandline. - Numerous other bug fixes and perf improvements in the CEF code have been added since we last took a version drop #jira distro-133 #[fyi] wes.fudala #ushell-cherrypick of 15635368 by alfred.reynolds [CL 15651276 by Marc Audy in ue5-main branch]
33 lines
665 B
C++
33 lines
665 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
#if WITH_CEF3
|
|
#include "CEFLibCefIncludes.h"
|
|
|
|
// Helper for posting a closure as a task
|
|
class FCEFBrowserClosureTask
|
|
: public CefTask
|
|
{
|
|
public:
|
|
FCEFBrowserClosureTask(CefRefPtr<CefBaseRefCounted> InHandle, TFunction<void ()> InClosure)
|
|
: Handle(InHandle)
|
|
, Closure(InClosure)
|
|
{ }
|
|
|
|
virtual void Execute() override
|
|
{
|
|
Closure();
|
|
}
|
|
|
|
private:
|
|
CefRefPtr<CefBaseRefCounted> Handle; // Used so the handler will not go out of scope before the closure is executed.
|
|
TFunction<void ()> Closure;
|
|
IMPLEMENT_REFCOUNTING(FCEFBrowserClosureTask);
|
|
};
|
|
|
|
|
|
#endif /* WITH_CEF3 */
|