From 085eae5dfc8086694f0ae703a843e8d92db38abe Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Tue, 7 May 2013 23:09:29 -0700 Subject: Rework of background task set up for rendering the thumbnails of the pages in the background. these are stored and swapped in and out of the page collection that is viewed as the user goes through the flip view. had some issues with respect to getting the background tasks shut down and mupdf cleaned up when someone opens a new file. that is now all resolved. This all simplified the code significantly. --- winrt/mupdf_cpp/MainPage.xaml | 2 +- winrt/mupdf_cpp/MainPage.xaml.cpp | 379 +++++++++++++------------------------- winrt/mupdf_cpp/MainPage.xaml.h | 15 +- winrt/mupdfwinrt/muctx.cpp | 17 ++ winrt/mupdfwinrt/muctx.h | 1 + winrt/mupdfwinrt/mudocument.cpp | 7 +- winrt/mupdfwinrt/mudocument.h | 1 + 7 files changed, 160 insertions(+), 262 deletions(-) (limited to 'winrt') diff --git a/winrt/mupdf_cpp/MainPage.xaml b/winrt/mupdf_cpp/MainPage.xaml index b9af3dd9..abaf7d36 100644 --- a/winrt/mupdf_cpp/MainPage.xaml +++ b/winrt/mupdf_cpp/MainPage.xaml @@ -14,7 +14,7 @@ - +