blob: 282a2cf60ca4ea253f06a504128c944a62625dfc [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
Daniel Bratellf73f0df2018-09-24 13:52:4926To check ANGLE builds without building all of Chromium.
andybons3322f762015-08-24 21:37:0927
28```shell
29ninja -C out\Release libEGL.dll
30```
31
32Change files then commit locally.
33
qyearsleyc0dc6f42016-12-02 22:13:3934Upload to Gerrit for review. You will need to have installed the git hook as
andybons3322f762015-08-24 21:37:0935described in the "Getting started with Gerrit for ANGLE" section of the
36ContributingCode doc before committing them locally.
37
38```shell
39git cl upload
40```
41
qyearsleyc0dc6f42016-12-02 22:13:3942As with subversion and Rietveld: visit the upload link for the review site,
andybons3322f762015-08-24 21:37:0943check the diff and the commit message then add reviewer(s) and publish.
44
qyearsleyc0dc6f42016-12-02 22:13:3945Land your changes to the upstream repository from the Gerrit web interface.
andybons3322f762015-08-24 21:37:0946
47If there are upstream changes, you may need to rebase your patches and reupload
48them.
49
50```shell
51git pull
52git cl upload
53```
54
55# Rolling ANGLE into Chrome
56
57To roll DEPS, make sure this is not commented out and update the hash associated
58with "angle\_revision". (Your hash will be different than the one below.)
59
60```
61 "angle_revision": "0ee126c670edae8dd1822980047450a9a530c032",
62```
63
64Then sync.
65
66```shell
67gclient sync
68```
69
70Your changes should now be in third\_party/angle.