Inspired by * https://github.com/google/skia/pull/18 * https://github.com/google/skia/pull/22 Change-Id: I4c092978f928ff2f589b6440d1fcdd846fa2b56f Docs-Preview: https://skia.org/?cl=342925 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342925 Reviewed-by: Heather Miller <hcm@google.com> Commit-Queue: Ravi Mistry <rmistry@google.com>
2.5 KiB
Code Search
There are a number of ways to search the Skia codebase, each with advantages and disadvantages.
cs.skia.org redirects to Chromium code search restricted to the Skia portion of the Chromium tree. You can add a query after the slash; e.g. cs.skia.org/foo will search for "foo" within the Skia tree. Chromium code search provides cross-references.
For Googlers, there is also the option of the skia depot in internal Code Search. In addition to the main skia repo, internal Code Search indexes the buildbot, common, and skia_internal repos. However, cross-references and code analysis are not available.
The GitHub mirrors of the skia and skia-buildbot repos are useful for investigating history and blame, or for exploring release branches or other branches. However, the search functionality is fairly limited, cross-references are not available, and in history the original committer's username is replaced with that person's GitHub username.
You can also navigate through the Skia repos on googlesource.com. All commits appear here first.
Code search option | Search | XRef | History | Repos | Branches | Freshness |
---|---|---|---|---|---|---|
cs.skia.org | regexp | yes | yes | skia buildbot | master | last DEPS roll |
Internal | regexp | no | yes | skia buildbot common internal | master | hours |
GitHub | basic | no | yes | skia buildbot | all | hour |
googlesource | none | no | yes | all | all | N/A |
Client code search
There is an internal tool for Googlers to make it easier to search the repos of Skia clients, e.g. Chromium, Android, and Mozilla. If you use it and have suggestions, please let dogben know.