Go to file
Mike Klein 912947737a Use __rdtsc on Windows.
This seems to be ~100x higher resolution than QueryPerformanceCounter.  AFAIK, all our Windows perf bots have constant_tsc, so we can be a bit more direct about using rdtsc directly: it'll always tick at the max CPU frequency.

Now, the question remains, what is the max CPU frequency to divide through by?  It looks like QueryPerformanceFrequency actually gives the CPU frequency in kHz, suspiciously exactly what we need to divide through to get elapsed milliseconds.  That was a freebie.

I did some before/after comparison on slow benchmarks.  Timings look the same.  Going to land this without review tonight to see what happens on the bots; happy to review carefully tomorrow.

R=mtklein@google.com
TBR=bungeman

BUG=skia:

Review URL: https://codereview.chromium.org/394363003
2014-07-16 19:59:32 -04:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Use __rdtsc on Windows. 2014-07-16 19:59:32 -04:00
debugger Fixed up SkTimedPicturePlayback 2014-07-08 13:07:57 -07:00
dm Remove benches from DM. 2014-07-16 14:29:53 -07:00
docs warn that docs/quickstart.md is out of sync with official docs 2014-04-21 19:18:46 +00:00
expectations rebaseline most dw changes 2014-07-16 16:20:12 -04:00
experimental https://chromiumcodereview.appspot.com/331133004/ 2014-07-15 11:11:25 -04:00
forth Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
gm roll common DEPS, now using recursedeps 2014-07-16 14:45:48 -07:00
gyp Remove benches from DM. 2014-07-16 14:29:53 -07:00
include Add new ASTC pixel config 2014-07-16 15:21:14 -07:00
platform_tools Make gdb work for 64-bit Skia 2014-07-16 13:21:15 -07:00
resources Adding resource files 2014-06-02 15:18:27 -04:00
samplecode remove dead code from sample 2014-07-15 19:56:55 -07:00
src Add new ASTC pixel config 2014-07-16 15:21:14 -07:00
tests 32 bpp floating point textures 2014-07-16 13:32:56 -07:00
third_party Delete third_party/harfbuzz 2014-07-10 11:32:44 -04:00
tools Use __rdtsc on Windows. 2014-07-16 19:59:32 -04:00
trybots_to_run/chrome Deleting the hardcoded list of compile bots in trybots_to_run. 2013-04-09 11:59:42 +00:00
.gitignore Add common/ to .gitignore 2014-06-20 07:47:36 -07:00
AUTHORS Do not export SkTDArray when building Skia as a DLL 2014-07-09 11:13:55 -07:00
codereview.settings Add Project to skia 2014-06-20 09:39:15 -07:00
CONTRIBUTING Add CONTRIBUTING file 2014-01-13 15:06:26 +00:00
CQ_COMMITTERS Add sugoi@ to CQ_COMMITTERS. 2014-06-16 08:54:57 -07:00
DEPS roll common DEPS, now using recursedeps 2014-07-16 14:45:48 -07:00
Doxyfile delete no-longer-used update-doxygen.sh 2014-05-15 14:41:00 +00:00
gyp_skia Fix Windows bots 2014-06-16 13:41:25 -07:00
gyp_skia.py Roll gyp deps from 1765 to 1796. 2013-11-21 18:11:14 +00:00
LICENSE Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.bat Enable compiling with automatically-downloaded VS toolchain on Windows bots 2014-06-16 10:02:42 -04:00
make.py Enable compiling with automatically-downloaded VS toolchain on Windows bots 2014-06-16 10:02:42 -04:00
Makefile simplify tools/xsan_build now that make runs ninja 2014-04-24 18:16:13 +00:00
OWNERS add root files from chrome 2013-08-13 19:11:15 +00:00
PRESUBMIT.py Use new common tools in Python scripts 2014-06-25 11:13:27 -04:00
README Point to skiadocs in our README. 2014-05-09 04:30:09 +00:00
README.chromium add root files from chrome 2013-08-13 19:11:15 +00:00
skia.gyp Remove the comments settings for vim tab width and expansion variables. 2013-12-02 22:23:03 +00:00
SKP_VERSION Update SKP version to 47 2014-07-10 00:16:59 -07:00
whitespace.txt force another build 2014-07-15 12:01:06 -04:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://sites.google.com/site/skiadocs/home