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