Surface Flinger: Implement GetBufferHistory (#1232)
* Surface Flinger: Implement GetBufferHistory Also fix some bugs on the Surface Flinger implementation * Address Ac_K's comment
This commit is contained in:
parent
b2e5855928
commit
378259a40a
12 changed files with 167 additions and 8 deletions
|
@ -39,6 +39,11 @@ namespace Ryujinx.HLE.HOS.Services.Time.Clock
|
|||
return new TimeSpanType(seconds * NanoSecondsPerSecond);
|
||||
}
|
||||
|
||||
public static TimeSpanType FromTimeSpan(TimeSpan timeSpan)
|
||||
{
|
||||
return new TimeSpanType((long)(timeSpan.TotalMilliseconds * 1000000));
|
||||
}
|
||||
|
||||
public static TimeSpanType FromTicks(ulong ticks, ulong frequency)
|
||||
{
|
||||
return FromSeconds((long)ticks / (long)frequency);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue