1Skia in Flutter & Fuchsia 2========================= 3 4Skia is used by both [Flutter](https://flutter.io/) and [Fuchsia](https://fuchsia.googlesource.com/docs/+/master/README.md). 5 6Fuchsia has a [roller](https://fuchsia-roll.skia.org/) that will continuously roll latest Skia into that project. Fuchsia uses an XML [manifest](https://fuchsia.googlesource.com/manifest/+/master/userspace) to specify the Skia revision (as well as other third party libraries). 7 8Flutter does not (yet) have a roller, so developers must manually perform rolls. Flutter uses [DEPS](https://github.com/flutter/engine/blob/master/DEPS) to specify third party dependencies. 9 10 11Although each project is (almost always) building at a different revision of Skia, Fuchsia itself always builds the latest revision of Flutter as one of its components. Thus, the versions of Skia being used by Flutter and Fuchsia must be "source compatible" -- Flutter must be capable of compiling against either revision without any change to Flutter itself. 12 13Making API Changes 14------------------ 15 16If you need to make a breaking API change, the basic approach is: 17 18* Add new code to Skia, leaving the old code in place. 19* Deprecate the old code path so that it must be enabled with a flag such as 'SK_SUPPORT_LEGACY_XXX'. 20* Add that same flag to [flutter\_defines.gni](https://skia.googlesource.com/skia/+/master/gn/flutter_defines.gni) in Skia. 21 * Both Flutter and Fuchsia build Skia with a GN argument that enables all the defines listed in that file. 22* Land the Skia change, and test the new API in both Flutter and Fuchsia. 23* Remove the flag and code when the legacy code path is no longer in use. 24