aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-05-09 13:58:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-15 20:05:56 +0000
commit35a87d60e6e6234a13808a67be832140035bab4e (patch)
tree44b06f5839cec2e9db5e98f19c2df65f9b721a21 /site
parent74564b40bcd476320f41342e54ebb8980d2bcdf8 (diff)
documentaion: consistant formatting
NOTRY=true Change-Id: I2dd9d755242ca6c3522c465e1fa00139dda71a9d Reviewed-on: https://skia-review.googlesource.com/16220 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'site')
-rw-r--r--site/dev/contrib/jumper.md18
1 files changed, 14 insertions, 4 deletions
diff --git a/site/dev/contrib/jumper.md b/site/dev/contrib/jumper.md
index 762e9b4faa..520876cd19 100644
--- a/site/dev/contrib/jumper.md
+++ b/site/dev/contrib/jumper.md
@@ -26,15 +26,19 @@ The easiest way to satisfy these contraints is to get your hands on a Mac and
install [Homebrew](https://brew.sh). Once you have `brew` installed, run this
to get the tools you need:
- $ brew install llvm binutils ccache
+<!--?prettify lang=sh?-->
+
+ brew install llvm binutils ccache
Running `build_stages.py`
-------------------------
With your tools installed, try a no-op run of `build_stages.py`:
- $ python src/jumper/build_stages.py path/to/clang-4.0 path/to/gobjdump path/to/ccache
- $ git status
+<!--?prettify lang=sh?-->
+
+ python src/jumper/build_stages.py path/to/clang-4.0 path/to/gobjdump path/to/ccache
+ git status
When you run `git status` you should see a bunch of untracked `.o` files
sitting in skia/, and no changes to `src/jumper/SkJumper_generated*.S`.
@@ -42,7 +46,9 @@ That's good. Those object files are the intermediates we parse to produce
the assembly files. We just leave them around in case you want to look at
them yourself. If you don't like them, it's safe to just
- $ rm \*.o
+<!--?prettify lang=sh?-->
+
+ rm *.o
If `clang-4.0`, `gobjdump`, and `ccache` are on your path, `build_stages.py`
should find them without you needing to pass them on the command line.
@@ -56,12 +62,16 @@ quality for speed, approximating the existing implementation with a simple squar
Open up `SkJumper_stages.cpp` and find the `from_srgb` stage. It'll look like
+<!--?prettify lang=cc?-->
+
STAGE(from_srgb) {
...
}
Let's replace whatever's there with our fast approximation:
+<!--?prettify lang=cc?-->
+
STAGE(from_srgb) {
r *= r;
g *= g;