skia2/third_party
Brian Osman 79086b94ed Integrate the ImGui library with viewer
Code and docs are at: https://github.com/ocornut/imgui

ImGui is an open source immediate mode GUI library that's
lightweight and fairly simply to integrate. Widget functions
return their state, and the library emits vertex and index
data to render everything. It's got a huge set of built-in
widgets and really robust layout control.

For the initial integration, I had to fix up event handling
in the viewer's app framework (to get mouse wheel and more
keys, etc...).

The new viewer 'Debug' window is toggled with the space bar.
For this change, I've added one feature to that window: the
slide picker. It's got a list of all slides, with filtering
support, and the ability to click to switch slides.

I also included the ImGui 'Demo' window (toggled with 'g').
This is nicely laid out, and includes examples of pretty
much everything the library can do. It also serves as good
documentation - find something that looks like what you want,
and then go look at the corresponding code (all of it is in
imgui_demo.cpp).

I have other CLs with other features (like directly editing
the primaries of the working color space), but I wanted to
land this chunk first, then start adding more features.

Other than adding new debugging features, there are few
more outstanding work items:

1) Raster doesn't render the GUI correctly, due to non-
invertible pos -> UV matrices. Florin is working on that.
2) Touch inputs aren't being routed yet, so the GUI isn't
usable on Android yet. Might also be tough to work with,
given the size.
3) ImGui has clipboard integration (that's why it wants
the C, X, and V keys), but we need to wire it up to the
OS' clipboard functions.
4) Draw commands can carry a void* payload to support
drawing images (using whatever mechanism the engine has).
I'd like to set that up (probably using SkImage*), which
makes it really easy to add visualization of off-screen
images in GMs, etc...

BUG=skia:

Change-Id: Iac2a63e37228d33141cb55b7e4d60bf11b7e9ae1
Reviewed-on: https://skia-review.googlesource.com/7702
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2017-02-10 19:17:03 +00:00
..
angle2 Get latest ANGLE as of January 6, 2017 2017-01-11 15:12:40 +00:00
cpu-features GN: Android 2016-08-25 14:50:44 -07:00
dng_sdk Reland "Build SkRawCodec in GN" 2016-10-31 09:02:57 -07:00
etc1 Revert of Depend on ETC1 via DEPS instead of a direct third_party checkin. (patchset #1 id:1 of https://codereview.chromium.org/1296253003/ ) 2015-08-17 11:15:00 -07:00
expat Allow most third_party targets to use system libraries if asked. 2016-11-01 16:17:38 +00:00
freetype/include/freetype-android Roll FreeType past 2.7.1. 2017-01-09 20:48:19 +00:00
freetype2 Allow most third_party targets to use system libraries if asked. 2016-11-01 16:17:38 +00:00
gif GIF: Only report a frame after knowing dependency 2017-01-30 21:22:29 +00:00
harfbuzz harfbuzz 1.3.0 → 1.4.2 2017-02-07 16:01:57 +00:00
icu Allow most third_party targets to use system libraries if asked. 2016-11-01 16:17:38 +00:00
imgui Integrate the ImGui library with viewer 2017-02-10 19:17:03 +00:00
jsoncpp Generate Android build targets for dm and nanobench 2017-01-27 20:02:23 +00:00
ktx Remove dep from ktx to SkTextureCompressor. 2017-02-09 22:10:16 +00:00
libjpeg-turbo Apple's Clang can't assemble jsimd_arm_... 2016-11-14 15:03:46 +00:00
libmicrohttpd GN/Win: everything links on my machine. 2016-10-12 16:39:42 +00:00
libpng GN: turn on libpng SSE2 filters 2016-11-07 22:36:42 +00:00
libsdl Remove unused files in third_party/libsdl. 2017-02-06 18:25:22 +00:00
libwebp Revert "Update libwebp to 0.6.0-pre" 2017-01-23 20:47:46 +00:00
lua GN: build Lua tools when skia_use_lua. 2016-11-11 17:34:36 +00:00
native_app_glue Add Android viewer to GN 2016-10-21 15:19:32 +00:00
piex Reland "Build SkRawCodec in GN" 2016-10-31 09:02:57 -07:00
sfntly Compile the skia library for windows using gn. 2016-09-16 13:29:57 -07:00
yasm Make yasm-android executable 2016-07-26 13:46:16 -07:00
zlib Allow most third_party targets to use system libraries if asked. 2016-11-01 16:17:38 +00:00
BUILD.gn GN: Android 2016-08-25 14:50:44 -07:00
README BUG=skia:5602 2016-09-02 11:19:34 -07:00
third_party.gni Allow most third_party targets to use system libraries if asked. 2016-11-01 16:17:38 +00:00

The third_party directory contains a set of dependencies from outside sources
that are needed to build various components and tools within Skia.  

Some of these dependencies reside within the Skia repo, while others are pulled 
from other repositories and placed in the third_party/externals directory
during build. These external dependencies are defined in a DEPS file.

Products in third_party are subject to their own respective license terms.  The
license for each project should be included in the source itself via a license
header or file.  If the source itself does not include a license header or file,
create a README that refers to reliable documentation of the project's license
terms on the web.