Skip to content

Instantly share code, notes, and snippets.

@wesleyhales
Created February 18, 2013 20:25
Show Gist options
  • Save wesleyhales/4980385 to your computer and use it in GitHub Desktop.
Save wesleyhales/4980385 to your computer and use it in GitHub Desktop.
Notes for building the Skia Debugger on OSX 10.7.5.
Download QT 4.8: http://qt-project.org/downloads
Follow quickstart: https://sites.google.com/site/skiadocs/user-documentation/quick-start-guides/mac
prerequisites, chekout, build, run tests
Checkout and build SKIA Debugger
https://sites.google.com/site/skiadocs/developer-documentation/skia-debugger
I had a few problems building and kept getting strange compile errors. I waited one day and updated the code with svn up and it magically started building.
GYP_DEFINES="skia_os=mac skia_arch_width=64" make debugger
Checkout and build Chromium
Mac Prerequisites: http://code.google.com/p/chromium/wiki/MacBuildInstructions
Get the code: http://dev.chromium.org/developers/how-tos/get-the-code
- Download 2GB bootstrap tarball
- install depot_tools: http://dev.chromium.org/developers/how-tos/install-depot-tools
- After tar unzip:
--gclient config http://git.chromium.org/chromium/src.git --git-deps
--gclient sync --force
- wget all the files
- Get the API keys: https://sites.google.com/a/chromium.org/dev/developers/how-tos/api-keys
- Set variables...
export GOOGLE_API_KEY=***
export GOOGLE_DEFAULT_CLIENT_ID=***
export GOOGLE_DEFAULT_CLIENT_SECRET=***
-build
ninja -C out/Debug chrome
If you get a LASTCHANGE error run
touch build/util/LASTCHANGE
Start Chromium
[chromium trunk]out/Debug/Chromium.app/Contents/MacOS/Chromium --no-sandbox --enable-gpu-benchmarking --force-compositing-mode
go to site
run from console:
chrome.gpuBenchmarking.printToSkPicture(‘a directory on your machine’)
[skia trunk]out/Debug/debugger.app/Contents/MacOS/debugger
open up the produced skp with your skia debugger [file->open].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment