aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-08-21 13:07:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-21 13:07:27 -0700
commitc92e550d3656abaf83b134b158756b940d58a907 (patch)
tree60863ff9019859f3ec644bb4a8fd7a188b93609d /gm
parent8ebdd99bb1c2c1687c9ad8f5344c75070394f23a (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 'gm')
-rw-r--r--gm/optimizations.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gm/optimizations.cpp b/gm/optimizations.cpp
index d810420f0a..a33f45711f 100644
--- a/gm/optimizations.cpp
+++ b/gm/optimizations.cpp
@@ -82,7 +82,7 @@ static SkPicture* create_save_layer_opt_1(SkTDArray<DrawType>* preOptPattern,
SkPictureRecorder recorder;
- SkCanvas* canvas = recorder.beginRecording(100, 100, NULL, 0);
+ SkCanvas* canvas = recorder.DEPRECATED_beginRecording(100, 100, NULL, 0);
// have to disable the optimizations while generating the picture
recorder.internalOnly_EnableOpts(false);
@@ -216,7 +216,7 @@ static SkPicture* create_save_layer_opt_2(SkTDArray<DrawType>* preOptPattern,
SkPictureRecorder recorder;
- SkCanvas* canvas = recorder.beginRecording(100, 100, NULL, 0);
+ SkCanvas* canvas = recorder.DEPRECATED_beginRecording(100, 100, NULL, 0);
// have to disable the optimizations while generating the picture
recorder.internalOnly_EnableOpts(false);
@@ -359,7 +359,8 @@ protected:
// re-render the 'pre' picture and thus 'apply' the optimization
SkPictureRecorder recorder;
- SkCanvas* recordCanvas = recorder.beginRecording(pre->width(), pre->height(), NULL, 0);
+ SkCanvas* recordCanvas =
+ recorder.DEPRECATED_beginRecording(pre->width(), pre->height(), NULL, 0);
pre->draw(recordCanvas);