• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2---
3title: "Code Search"
4linkTitle: "Code Search"
5
6---
7
8
9There are a number of ways to search the Skia codebase, each with advantages and
10disadvantages.
11
12[cs.skia.org](http://cs.skia.org) redirects to
13[Chromium code search](https://code.google.com/p/chromium/codesearch) restricted
14to the Skia portion of the Chromium tree. You can add a query after the slash;
15e.g. [cs.skia.org/foo](http://cs.skia.org/foo) will search for "foo" within the
16Skia tree. Chromium code search provides cross-references.
17
18For Googlers, there is also the option of [the skia depot](http://cs/#skia/) in
19internal Code Search. In addition to the
20main [skia](http://cs/#skia/skia/) repo, internal Code Search indexes the
21[buildbot](http://cs/#skia/buildbot/), [common](http://cs/#skia/common/),
22and [skia_internal](https://cs/#skia/skia_internal/) repos. However,
23cross-references and code analysis are not available.
24
25The GitHub mirrors of the [skia](https://github.com/google/skia) and
26[skia-buildbot](https://github.com/google/skia-buildbot) repos are useful for
27investigating history and blame, or for exploring release branches or other
28branches. However, the search functionality is fairly limited, cross-references
29are not available, and in history the original committer's username is replaced
30with that person's GitHub username.
31
32You can also navigate through the
33[Skia repos on googlesource.com](https://skia.googlesource.com/). All commits
34appear here first.
35
36  Code search option  |Search |XRef |History |Repos                         |Branches |Freshness
37  --------------------|-------|-----|--------|------------------------------|---------|---------------
38  [cs.skia.org][1]    |regexp | yes |yes     |skia [buildbot][5]            |main     |last DEPS roll
39  [Internal][2]       |regexp | no  |yes     |skia buildbot common internal |main     |hours
40  [GitHub][3]         |basic  | no  |yes     |skia buildbot                 |all      |hour
41  [googlesource][4]   |none   | no  |yes     |all                           |all      |N/A
42
43[1]: http://cs.skia.org/             "Chromium code search"
44[2]: http://cs/#skia/                "Internal Code Search"
45[3]: https://github.com/google/skia  "GitHub mirror of skia"
46[4]: https://skia.googlesource.com/  "Primary Skia repos on googlesource.com"
47[5]: https://cs.chromium.org/chromium/skia/buildbot/
48
49Client code search
50------------------
51
52There is an [internal tool for
53Googlers](https://goto.google.com/skia-client-search) to make it easier to
54search the repos of Skia clients, e.g. Chromium, Android, and Mozilla. If you
55use it and have suggestions, please let brianosman know.
56
57