blob: a955ff015b07aa68ee599307d5ae0964e10f4cf2 [file] [log] [blame] [view]
andybons3322f762015-08-24 21:37:091# Hacking on ANGLE in Chromium
2
3In DEPS, comment out the part that looks like this.
4
5```
6# "src/third_party/angle":
7# Var("chromium_git") + "/angle/angle.git@" + Var("angle_revision"),
8```
9
10Delete or rename third\_party/angle.
11
12(Optional) sync and make sure the third\_party/angle directory doesn't come
13back. It shouldn’t because it is no longer referenced from DEPS.
14
15```shell
16gclient sync -r CURRENT_REVISION
17```
18
19Clone the ANGLE git repository.
20
21```
22> git clone https://chromium.googlesource.com/angle/angle third_party/angle
23> gclient runhooks
24```
25
26To check ANGLE builds (assumes you ran hooks with GYP\_GENERATORS=ninja) without
27building all of Chromium.
28
29```shell
30ninja -C out\Release libEGL.dll
31```
32
33Change files then commit locally.
34
35Upload to gerrit for review. You will need to have installed the git hook as
36described in the "Getting started with Gerrit for ANGLE" section of the
37ContributingCode doc before committing them locally.
38
39```shell
40git cl upload
41```
42
43As with subversion and rietveld: visit the upload link for the review site,
44check the diff and the commit message then add reviewer(s) and publish.
45
46Land your changes to the upstream repository from the gerrit web interface.
47
48If there are upstream changes, you may need to rebase your patches and reupload
49them.
50
51```shell
52git pull
53git cl upload
54```
55
56# Rolling ANGLE into Chrome
57
58To roll DEPS, make sure this is not commented out and update the hash associated
59with "angle\_revision". (Your hash will be different than the one below.)
60
61```
62 "angle_revision": "0ee126c670edae8dd1822980047450a9a530c032",
63```
64
65Then sync.
66
67```shell
68gclient sync
69```
70
71Your changes should now be in third\_party/angle.