diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-01 16:24:06 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-01 16:24:06 +0000 |
commit | e3ff558a4baf4cb924e7513a81c8073ddae385fc (patch) | |
tree | 245339b6d7d39e36212bbbe6b975fcfd802f0ff5 /gyp | |
parent | d48ad8e33307ad651264a3c3068b4468201fccf6 (diff) |
SkRecord strawman
Record performance as measured by bench_record (out/Release/bench_record --skr) improves by at least 1.9x, at most 6.7x, arithmetic mean 2.6x, geometric mean 3.0x. So, good.
Correctness as measured by DM (out/Debug/dm --skr) is ~ok. One GM (shadertext2) fails because we're assuming all paint effects are immutable, but SkShaders are still mutable.
To do after this CL:
- measure playback speed
- catch up feature-wise to SkPicture
- match today's playback speed
BUG=skia:
R=robertphillips@google.com, bsalomon@google.com, reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/206313003
git-svn-id: http://skia.googlecode.com/svn/trunk@14010 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/dm.gyp | 3 | ||||
-rw-r--r-- | gyp/record.gyp | 14 | ||||
-rw-r--r-- | gyp/tools.gyp | 2 |
3 files changed, 19 insertions, 0 deletions
diff --git a/gyp/dm.gyp b/gyp/dm.gyp index c96281aef6..6bce65afb3 100644 --- a/gyp/dm.gyp +++ b/gyp/dm.gyp @@ -16,6 +16,7 @@ '../src/core', '../src/effects', '../src/pipe/utils/', + '../src/record', '../src/utils', '../src/utils/debugger', '../tools', @@ -33,6 +34,7 @@ '../dm/DMExpectationsTask.cpp', '../dm/DMGpuGMTask.cpp', '../dm/DMPipeTask.cpp', + '../dm/DMRecordTask.cpp', '../dm/DMReplayTask.cpp', '../dm/DMReporter.cpp', '../dm/DMSerializeTask.cpp', @@ -55,6 +57,7 @@ 'flags.gyp:flags', 'jsoncpp.gyp:jsoncpp', 'gputest.gyp:skgputest', + 'record.gyp:*', ], }] } diff --git a/gyp/record.gyp b/gyp/record.gyp new file mode 100644 index 0000000000..2e4a560ec7 --- /dev/null +++ b/gyp/record.gyp @@ -0,0 +1,14 @@ +# An experimental library for faster recording of SkCanvas commands. +{ + 'targets': [{ + 'target_name': 'record', + 'type': 'static_library', + 'include_dirs': [ + '../include/config', + '../include/core', + ], + 'sources': [ + '../src/record/SkRecorder.cpp', + ], + }] +} diff --git a/gyp/tools.gyp b/gyp/tools.gyp index fe84a97813..461cc6b64b 100644 --- a/gyp/tools.gyp +++ b/gyp/tools.gyp @@ -300,10 +300,12 @@ '../src/core/', '../src/images', '../src/lazy', + '../src/record', ], 'dependencies': [ 'flags.gyp:flags', 'skia_lib.gyp:skia_lib', + 'record.gyp:*', ], }, { |