Files
UnrealEngine/Engine/Source/Runtime/WebBrowser/Private/CEF/CEFWebBrowserWindowRHIHelper.h
2025-05-18 13:04:45 +08:00

37 lines
806 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#if WITH_CEF3
#include "Layout/Geometry.h"
class FSlateTexture2DRHIRef;
class FSlateUpdatableTexture;
/**
* Implementation of RHI renderer details for the CEF accelerated rendering path
*/
class FCEFWebBrowserWindowRHIHelper
{
public:
/** Virtual Destructor. */
virtual ~FCEFWebBrowserWindowRHIHelper();
public:
static bool BUseRHIRenderer();
FSlateUpdatableTexture* CreateTexture(void *ShareHandle);
void UpdateSharedHandleTexture(void* SharedHandle, FSlateUpdatableTexture* SlateTexture, const FIntRect& DirtyIn);
void UpdateCachedGeometry(const FGeometry& AllottedGeometry);
TOptional<FSlateRenderTransform> GetWebBrowserRenderTransform() const;
private:
FGeometry AllottedGeometry;
};
#endif