remove unused fields

This commit is contained in:
Tian Liao 2024-04-03 21:04:01 +08:00
commit 3462bd8c7e
2 changed files with 7 additions and 11 deletions

View file

@ -30,11 +30,10 @@ namespace
namespace GraphControl::DX namespace GraphControl::DX
{ {
RenderMain::RenderMain(SwapChainPanel ^ panel) RenderMain::RenderMain(SwapChainPanel ^ panel)
: m_deviceResources{ panel } : m_deviceResources(panel)
, m_nearestPointRenderer{ &m_deviceResources } , m_nearestPointRenderer(&m_deviceResources)
, m_backgroundColor{ {} } , m_swapChainPanel(panel)
, m_swapChainPanel{ panel } , m_TraceLocation(Point{ 0, 0 })
, m_TraceLocation(Point(0, 0))
, m_Tracing(false) , m_Tracing(false)
{ {
// Register to be notified if the Device is lost or recreated // Register to be notified if the Device is lost or recreated
@ -47,6 +46,7 @@ namespace GraphControl::DX
RenderMain::~RenderMain() RenderMain::~RenderMain()
{ {
m_renderPassCts.cancel();
UnregisterEventHandlers(); UnregisterEventHandlers();
} }
@ -212,8 +212,8 @@ namespace GraphControl::DX
} }
m_renderPassCts = concurrency::cancellation_token_source{}; m_renderPassCts = concurrency::cancellation_token_source{};
bool result = true; bool result = false;
co_await CoreWindow::GetForCurrentThread()->Dispatcher->RunAsync( co_await m_coreWindow->Dispatcher->RunAsync(
CoreDispatcherPriority::High, CoreDispatcherPriority::High,
ref new DispatchedHandler( ref new DispatchedHandler(
[this, &result, cancel = m_renderPassCts.get_token()] [this, &result, cancel = m_renderPassCts.get_token()]

View file

@ -175,10 +175,6 @@ namespace GraphControl::DX
Windows::Foundation::EventRegistrationToken m_tokenOrientationChanged; Windows::Foundation::EventRegistrationToken m_tokenOrientationChanged;
Windows::Foundation::EventRegistrationToken m_tokenDisplayContentsInvalidated; Windows::Foundation::EventRegistrationToken m_tokenDisplayContentsInvalidated;
// Track our independent input on a background worker thread.
Windows::Foundation::IAsyncAction ^ m_inputLoopWorker = nullptr;
Windows::UI::Core::CoreIndependentInputSource ^ m_coreInput = nullptr;
double m_XTraceValue; double m_XTraceValue;
double m_YTraceValue; double m_YTraceValue;