Use explicit types everywhere
このコミットが含まれているのは:
1 親
27c629f3b4
コミット
16c0fc9aab
74ファイル変更
+455
-446
検索条件に一致するファイルはありません
@@ -34,7 +34,7 @@ partial class SwapChainManager<TOwner>
|
||||
// Here and in the calls below, only get a reference tracking lease when starting a render thread.
|
||||
// This avoids crashes when the panel has been disposed but some code (eg. event handlers) still
|
||||
// ends up calling into any of the APIs in this file, which is not intended but should not crash.
|
||||
using var _0 = GetReferenceTrackingLease();
|
||||
using Lease _0 = GetReferenceTrackingLease();
|
||||
|
||||
this.renderCancellationTokenSource?.Cancel();
|
||||
|
||||
@@ -79,7 +79,7 @@ partial class SwapChainManager<TOwner>
|
||||
// If there is a render thread currently running, stop it and restart it
|
||||
if (this.renderCancellationTokenSource?.IsCancellationRequested == false)
|
||||
{
|
||||
using var _0 = GetReferenceTrackingLease();
|
||||
using Lease _0 = GetReferenceTrackingLease();
|
||||
|
||||
this.renderCancellationTokenSource?.Cancel();
|
||||
|
||||
@@ -114,7 +114,7 @@ partial class SwapChainManager<TOwner>
|
||||
if (this.renderCancellationTokenSource?.IsCancellationRequested == false &&
|
||||
this.isDynamicResolutionEnabled)
|
||||
{
|
||||
using var _0 = GetReferenceTrackingLease();
|
||||
using Lease _0 = GetReferenceTrackingLease();
|
||||
|
||||
this.renderCancellationTokenSource?.Cancel();
|
||||
|
||||
@@ -187,13 +187,13 @@ partial class SwapChainManager<TOwner>
|
||||
this.dynamicResolutionScale = this.resolutionScale;
|
||||
|
||||
// These two leases are needed to ensure the manager isn't disposed while rendering is running
|
||||
using var _0 = GetReferenceTrackingLease();
|
||||
using Lease _0 = GetReferenceTrackingLease();
|
||||
|
||||
RenderLoopWithDynamicResolution();
|
||||
}
|
||||
else
|
||||
{
|
||||
using var _0 = GetReferenceTrackingLease();
|
||||
using Lease _0 = GetReferenceTrackingLease();
|
||||
|
||||
RenderLoop();
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする