build image cache in cpp dispEngine
This commit is contained in:
parent
5ca836538d
commit
e6db6cfa08
@ -253,7 +253,6 @@ namespace Hi.Wpf.Disp
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region DispEngine_Rendering
|
#region DispEngine_Rendering
|
||||||
private byte[] PreImageBgra { get; set; }
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Handles the buffer swapped event from DispEngine
|
/// Handles the buffer swapped event from DispEngine
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -262,12 +261,7 @@ namespace Hi.Wpf.Disp
|
|||||||
if (data == null)
|
if (data == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//since the treatment is different from Razor version,
|
|
||||||
//the image checking mechanism cannot be set in DispEngine.
|
|
||||||
Span<byte> bgra = new Span<byte>(data, w * h * 4);
|
Span<byte> bgra = new Span<byte>(data, w * h * 4);
|
||||||
if (PreImageBgra != null && bgra.SequenceEqual(PreImageBgra))
|
|
||||||
return;
|
|
||||||
PreImageBgra = bgra.ToArray();
|
|
||||||
|
|
||||||
// Copy pixel data from DispEngine
|
// Copy pixel data from DispEngine
|
||||||
int n = w * h * 4;
|
int n = w * h * 4;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
HiAPI wpf canvas.
|
HiAPI wpf canvas.
|
||||||
</Description>
|
</Description>
|
||||||
<Configurations>Debug;Release</Configurations>
|
<Configurations>Debug;Release</Configurations>
|
||||||
<VersionBuild>24</VersionBuild>
|
<VersionBuild>25</VersionBuild>
|
||||||
<VersionPrefix>3.1.$(VersionBuild)</VersionPrefix>
|
<VersionPrefix>3.1.$(VersionBuild)</VersionPrefix>
|
||||||
<PackageTags>HiAPI</PackageTags>
|
<PackageTags>HiAPI</PackageTags>
|
||||||
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user