5 Commits

Author SHA1 Message Date
Yurii Nakonechnyi
44252b3f41 Added GLFW error-callback into FlutterEmbedderGLFW (flutter/engine#19998)
GLFW Error callback useful to clarify reasons of 'glfwInit()' failure.

On some platforms/desktop environments may be really strange failure reasons, like (in my case): "Linux: Failed to initialize inotify: Too many open files", so descriptive error messages helps to solve problem.
2020-09-24 14:39:20 -07:00
Chris Bracken
d03692449b Prefer C++ standard headers to their C counterpart (flutter/engine#21091)
We currently use a mix of C standard includes (e.g. limits.h) and their
C++ variants (e.g. climits). This migrates to a consistent style for all
cases where the C++ variants are acceptable, but leaves the C
equivalents in place where they are required, such as in the embedder
API and other headers that may be used from C.
2020-09-11 17:10:00 -07:00
Chris Bracken
9ff7d7ca44 Copyright header hygiene improvements (flutter/engine#21089)
Add copyright headers in a few files where they were missing.

Trim trailing blank comment line where present, for consistency with
other engine code.

Use the standard libtxt copyright header in one file where it differed
(extra (C) and comma compared to other files in libtxt).

This also amends tools/const_finder/test/const_finder_test.dart to look
for a const an additional four lines down to account for the copyright
header added to the test fixture.
2020-09-11 08:55:37 -07:00
Yurii Nakonechnyi
f034712531 Clarify that run.sh builds and runs the GLFW example 2020-09-09 17:11:20 -07:00
gaaclarke
17cbf8c51e Added an embedder example (flutter/engine#12808) 2019-10-08 10:07:27 -07:00