OLD | NEW |
(Empty) | |
| 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 back
. It shouldn’t because it is no longer referenced from DEPS. |
| 13 |
| 14 ``` |
| 15 > gclient sync -r CURRENT_REVISION |
| 16 ``` |
| 17 |
| 18 Clone the ANGLE git repository. |
| 19 |
| 20 ``` |
| 21 > git clone https://chromium.googlesource.com/angle/angle third_party/angle |
| 22 > gclient runhooks |
| 23 ``` |
| 24 |
| 25 To check ANGLE builds (assumes you ran hooks with GYP\_GENERATORS=ninja) without
building all of Chromium.. |
| 26 |
| 27 ``` |
| 28 > ninja -C out\Release libEGL.dll |
| 29 ``` |
| 30 |
| 31 Change files then commit locally. |
| 32 |
| 33 Upload to gerrit for review. You will need to have installed the git hook as des
cribed in the "Getting started with Gerrit for ANGLE" section of the Contributin
gCode doc before committing them locally. |
| 34 |
| 35 ``` |
| 36 > git cl upload |
| 37 ``` |
| 38 |
| 39 As with subversion and rietveld: visit the upload link for the review site, chec
k the diff and the commit message then add reviewer(s) and publish. |
| 40 |
| 41 Land your changes to the upstream repository from the gerrit web interface. |
| 42 |
| 43 If there are upstream changes, you may need to rebase your patches and reupload
them. |
| 44 |
| 45 ``` |
| 46 > git pull |
| 47 > git cl upload |
| 48 ``` |
| 49 |
| 50 # Rolling ANGLE into Chrome |
| 51 |
| 52 To roll DEPS, make sure this is not commented out and update the hash associated
with "angle\_revision". (Your hash will be different than the one below.) |
| 53 |
| 54 ``` |
| 55 "angle_revision": "0ee126c670edae8dd1822980047450a9a530c032", |
| 56 ``` |
| 57 |
| 58 Then sync. |
| 59 |
| 60 ``` |
| 61 > gclient sync |
| 62 ``` |
| 63 |
| 64 Your changes should now be in third\_party/angle. |
OLD | NEW |