diff options
author | liyuqian <liyuqian@google.com> | 2016-06-16 14:10:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-16 14:10:34 -0700 |
commit | 74959a1471cd3b20e2dd79fc0c685e7205a25cd9 (patch) | |
tree | bd13a55276240cce600dd0b8d1a9dbd66ec1cf4c /tools/viewer/sk_app/Window.h | |
parent | 6dc3af4499893045f7b187d5d85bc785b6e44baa (diff) |
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
Diffstat (limited to 'tools/viewer/sk_app/Window.h')
-rw-r--r-- | tools/viewer/sk_app/Window.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<SkSurface> getOffscreenSurface(bool forceSRGB); + protected: Window(); |