Index: gm/optimizations.cpp |
diff --git a/gm/optimizations.cpp b/gm/optimizations.cpp |
index d810420f0a00943f617418a7a0c8581e8174550d..a33f45711f9f3117aac343e46c390da611a062aa 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); |