skia2/tools/viewer/sk_app
Brian Osman f750fbcb69 Simplify viewer's handling of backbuffer surface and color space
WindowContext still supports color spaces, but not other color
types. Any off-screen rendering is the app's responsibility.

This change also adds (working) F16 support to viewer. Note that
the previous 10-bit and FP16 support in WindowContext was broken.
There was no code to push the off-screen canvas to the window.
If you ever made it to the unreachable off-screen code path in
createSurface, it would have simply stopped drawing.

The decision to limit the window's gamut to sRGB is mostly driven
by my desire to add real-time editing of gamut. This design lets
us do that, without tearing down and rebuilding the window for
every change. An application could still supply a different gamut
via setDisplayParams and render directly to the back buffer with
proper color correction.

BUG=skia:

Change-Id: I94df35c7a42faee396009acc83683e40bb3c284d
Reviewed-on: https://skia-review.googlesource.com/8153
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2017-02-08 17:34:05 +00:00
..
android Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
mac Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
unix Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
win Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
Application.h More accurate render time and continuous fresh 2016-07-06 14:11:32 -07:00
CommandSet.cpp Add Softkey UIState to Viewer 2016-06-03 08:47:24 -07:00
CommandSet.h Add Softkey UIState to Viewer 2016-06-03 08:47:24 -07:00
DisplayParams.h Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
GLWindowContext.cpp Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
GLWindowContext.h Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
RasterWindowContext.h Use Windowing system-specific WindowContext factories. 2016-07-26 12:02:51 -07:00
VulkanWindowContext.cpp Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
VulkanWindowContext.h tools: s/SkAutoTUnref/sk_sp/ 2016-11-03 21:00:34 +00:00
Window.cpp Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
Window.h Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
WindowContext.h Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00