IDCompositionVisualDebug::EnableRedrawRegions method

Enables highlighting visuals when content is being redrawn.

Syntax

HRESULT EnableRedrawRegions(

);

Parameters

This method has no parameters.

Return Value

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See DirectComposition Error Codes for a list of error codes.

Remarks

Highlighting redraw regions can be enabled by calling EnableRedrawRegions. With this function, redrawn client areas are visually highlighted every frame the visual is updated. Redraw regions are drawn on the source of the VisualDebug and child visuals. Redraw is triggered when properties of a visual are updated. The updated visusal does not neccessarly need to visually change to trigger a redraw. The highlighting will cycle through Blue, Yellow, Pink and Green to provide an order of which content is being updated. The redraw regions are only visible while the window of the VisualDebug is being updated.

Requirements

   
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header dcomp.h
Library Dcomp.lib
DLL Dcomp.dll

See Also

IDCompositionDeviceDebug

IDCompositionVisualDebug

IDCompositionVisualDebug::DisableRedrawRegions