diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-11 15:54:14 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-11 15:54:14 +0000 |
commit | c873329ae9ff00b0c45f7294172ad2e9b1ec44c8 (patch) | |
tree | 097af473a93308c68cf5aebaebf51abd1722034b /src/gpu | |
parent | 0bd03cf38cc61ab78c09eb83f4564e34a3d7415f (diff) |
Update bench to be able to preprocess skps
This allows benchmarking of optimization improvements and plumbs in the purging API. The purging is necessary so we don't magically get faster because the saveLayers are always pre-generated.
R=jvanverth@google.com, reed@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/233663002
git-svn-id: http://skia.googlecode.com/svn/trunk@14154 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 911ac5a235..7c804ab2a0 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -1918,7 +1918,11 @@ void SkGpuDevice::EXPERIMENTAL_optimize(SkPicture* picture) { GatherGPUInfo(picture, data); } -bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkPicture* picture) { +void SkGpuDevice::EXPERIMENTAL_purge(SkPicture* picture) { + +} + +bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* canvas, SkPicture* picture) { SkPicture::AccelData::Key key = ComputeAccelDataKey(); |