IRenderHandlerOnAcceleratedPaint Method |
Version 130.1.90
Called when an element has been rendered to the shared texture handle.
This method is only called when
SharedTextureEnabled is set to true
The underlying implementation uses a pool to deliver frames. As a result,
the handle may differ every frame depending on how many frames are
in-progress. The handle's resource cannot be cached and cannot be accessed
outside of this callback. It should be reopened each time this callback is
executed and the contents should be copied to a texture owned by the
client application. The contents of
acceleratedPaintInfoacceleratedPaintInfo
will be released back to the pool after this callback returns.
Namespace: CefSharp.OffScreenAssembly: CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax void OnAcceleratedPaint(
PaintElementType type,
Rect dirtyRect,
AcceleratedPaintInfo acceleratedPaintInfo
)
void OnAcceleratedPaint(
PaintElementType type,
Rect dirtyRect,
AcceleratedPaintInfo^ acceleratedPaintInfo
)
Parameters
- type PaintElementType
- indicates whether the element is the view or the popup widget.
- dirtyRect Rect
- contains the set of rectangles in pixel coordinates that need to be repainted
- acceleratedPaintInfo AcceleratedPaintInfo
- contains the shared handle; on Windows it is a
HANDLE to a texture that can be opened with D3D11 OpenSharedResource.
See Also