diff options
Diffstat (limited to 'tools/viewer/Viewer.h')
-rw-r--r-- | tools/viewer/Viewer.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/viewer/Viewer.h b/tools/viewer/Viewer.h index 1ed135d819..1608fa9055 100644 --- a/tools/viewer/Viewer.h +++ b/tools/viewer/Viewer.h @@ -31,11 +31,12 @@ public: private: void initSlides(); void updateTitle(); + void setColorMode(SkColorType, sk_sp<SkColorSpace>); void setupCurrentSlide(int previousSlide); void updateUIState(); - void drawSlide(SkCanvas* canvs, bool inSplitScreen); + void drawSlide(SkCanvas* canvs); void drawStats(SkCanvas* canvas); void changeZoomLevel(float delta); @@ -54,11 +55,12 @@ private: bool fDisplayStats; bool fRefresh; // whether to continuously refresh for measuring render time - // whether to split the screen and draw two copies of the slide, one with sRGB and one without - bool fSplitScreen; - sk_app::Window::BackendType fBackendType; + // Color properties for slide rendering + SkColorType fColorType; + sk_sp<SkColorSpace> fColorSpace; + // transform data SkScalar fZoomCenterX; SkScalar fZoomCenterY; |