From 74959a1471cd3b20e2dd79fc0c685e7205a25cd9 Mon Sep 17 00:00:00 2001 From: liyuqian Date: Thu, 16 Jun 2016 14:10:34 -0700 Subject: Use Offscreen Surface for Split Screen A dashed line is also added to split the screen. Currently, drawing images with sRGB seems to still have bugs. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2069653002 Review-Url: https://codereview.chromium.org/2069653002 --- tools/viewer/sk_app/Window.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/viewer/sk_app/Window.h') diff --git a/tools/viewer/sk_app/Window.h b/tools/viewer/sk_app/Window.h index 8b1378a80f..f4d75cbe73 100644 --- a/tools/viewer/sk_app/Window.h +++ b/tools/viewer/sk_app/Window.h @@ -15,6 +15,7 @@ #include "SkJSONCPP.h" class SkCanvas; +class SkSurface; namespace sk_app { @@ -161,6 +162,9 @@ public: virtual const DisplayParams& getDisplayParams(); void setDisplayParams(const DisplayParams& params); + // This is just for the sRGB split screen + sk_sp getOffscreenSurface(bool forceSRGB); + protected: Window(); -- cgit v1.2.3