diff options
author | fmalita@chromium.org <fmalita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-30 18:47:13 +0000 |
---|---|---|
committer | fmalita@chromium.org <fmalita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-30 18:47:13 +0000 |
commit | 64975676cd67731613e0eabd82f2c0c913fefdb2 (patch) | |
tree | 025d4a3260c783faec6604a33c8323656a47c6b5 /skia/skia_chrome.gypi | |
parent | 6133cc23dc8e0ec802aa427c55b7b5eebf687205 (diff) | |
download | chromium_src-64975676cd67731613e0eabd82f2c0c913fefdb2.zip chromium_src-64975676cd67731613e0eabd82f2c0c913fefdb2.tar.gz chromium_src-64975676cd67731613e0eabd82f2c0c913fefdb2.tar.bz2 |
[SkiaBenchmarkingExtension] Add draw command timing info.
Extend skiaBenchmarking.getOps() to also report per-op timing information (microseconds, as measured while drawing to a bitmap canvas).
The CL introduces a new SkiaBenchmarkingCanvas abstraction, which is responsible for extracting the op list and gathering render timings. This is accomplished by multiplexing the draw commands onto two internal canvases:
* an SkDebugCanvas - records command info and tracks the current command index.
* an SkiaTimingCanvas - instrumented canvas (records timing information while drawing to a backing bitmap canvas).
Since SkiaTimingCanvas relies on SkDebugCanvas for tracking the current command index, we do not have to worry about timing indices getting out of sync due to missing SkCanvas method overrides, and can selectively instrument only methods of interest. This insulates skiaBenchmarking from SkCanvas API changes.
R=nduca@chromium.org, piman@chromium.org, senorblanco@chromium.org
Review URL: https://codereview.chromium.org/19266015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214404 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/skia_chrome.gypi')
-rw-r--r-- | skia/skia_chrome.gypi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/skia/skia_chrome.gypi b/skia/skia_chrome.gypi index d47fc10..ecd9b47 100644 --- a/skia/skia_chrome.gypi +++ b/skia/skia_chrome.gypi @@ -27,6 +27,8 @@ 'sources': [ 'ext/analysis_canvas.cc', 'ext/analysis_canvas.h', + 'ext/benchmarking_canvas.cc', + 'ext/benchmarking_canvas.h', 'ext/bitmap_platform_device.h', 'ext/bitmap_platform_device_android.cc', 'ext/bitmap_platform_device_android.h', |