diff options
author | mtklein <mtklein@chromium.org> | 2014-08-21 13:07:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-21 13:07:27 -0700 |
commit | c92e550d3656abaf83b134b158756b940d58a907 (patch) | |
tree | 60863ff9019859f3ec644bb4a8fd7a188b93609d /include | |
parent | 8ebdd99bb1c2c1687c9ad8f5344c75070394f23a (diff) |
Install a hook to swap between SkPicture backends with a single define.
BUG=skia:
R=robertphillips@google.com, reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/492023002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPictureRecorder.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/core/SkPictureRecorder.h b/include/core/SkPictureRecorder.h index c00d1b3dfb..bd8614813b 100644 --- a/include/core/SkPictureRecorder.h +++ b/include/core/SkPictureRecorder.h @@ -41,7 +41,17 @@ public: SkBBHFactory* bbhFactory = NULL, uint32_t recordFlags = 0); - /** Same as beginRecording(), using a new faster backend. */ + // As usual, we have a deprecated old version and a maybe almost working + // new version. We currently point beginRecording() to + // DEPRECATED_beginRecording() unless SK_PICTURE_USE_SK_RECORD is defined, + // then we use EXPERIMENTAL_beginRecording(). + + // Old slower backend. + SkCanvas* DEPRECATED_beginRecording(int width, int height, + SkBBHFactory* bbhFactory = NULL, + uint32_t recordFlags = 0); + + // New faster backend. SkCanvas* EXPERIMENTAL_beginRecording(int width, int height, SkBBHFactory* bbhFactory = NULL); |