0
Files
src/docs/angle_in_chromium.md
Daniel Bratell f73f0df88a Remove references to gyp from DEPS and docs
Bug: 826218
Change-Id: I176e1aeb0b24b21c6b4e5ee40910dce2bce52c95
Reviewed-on: https://chromium-review.googlesource.com/1239461
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Daniel Bratell <bratell@opera.com>
Cr-Commit-Position: refs/heads/master@{#593522}
2018-09-24 13:52:49 +00:00

71 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Hacking on ANGLE in Chromium
In DEPS, comment out the part that looks like this.
```
# "src/third_party/angle":
# Var("chromium_git") + "/angle/angle.git@" + Var("angle_revision"),
```
Delete or rename third\_party/angle.
(Optional) sync and make sure the third\_party/angle directory doesn't come
back. It shouldnt because it is no longer referenced from DEPS.
```shell
gclient sync -r CURRENT_REVISION
```
Clone the ANGLE git repository.
```
> git clone https://chromium.googlesource.com/angle/angle third_party/angle
> gclient runhooks
```
To check ANGLE builds without building all of Chromium.
```shell
ninja -C out\Release libEGL.dll
```
Change files then commit locally.
Upload to Gerrit for review. You will need to have installed the git hook as
described in the "Getting started with Gerrit for ANGLE" section of the
ContributingCode doc before committing them locally.
```shell
git cl upload
```
As with subversion and Rietveld: visit the upload link for the review site,
check the diff and the commit message then add reviewer(s) and publish.
Land your changes to the upstream repository from the Gerrit web interface.
If there are upstream changes, you may need to rebase your patches and reupload
them.
```shell
git pull
git cl upload
```
# Rolling ANGLE into Chrome
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.)
```
"angle_revision": "0ee126c670edae8dd1822980047450a9a530c032",
```
Then sync.
```shell
gclient sync
```
Your changes should now be in third\_party/angle.