Index: gm/optimizations.cpp |
=================================================================== |
--- gm/optimizations.cpp (revision 13655) |
+++ gm/optimizations.cpp (working copy) |
@@ -82,8 +82,8 @@ |
SkPicture* result = new SkPicture; |
// have to disable the optimizations while generating the picture |
- SkCanvas* canvas = result->beginRecording(100, 100, |
- SkPicture::kDisableRecordOptimizations_RecordingFlag); |
+ SkCanvas* canvas = result->beginRecording(100, 100); |
+ result->internalOnly_EnableOpts(false); |
SkPaint saveLayerPaint; |
saveLayerPaint.setColor(0xCC000000); |
@@ -218,8 +218,8 @@ |
SkPicture* result = new SkPicture; |
// have to disable the optimizations while generating the picture |
- SkCanvas* canvas = result->beginRecording(100, 100, |
- SkPicture::kDisableRecordOptimizations_RecordingFlag); |
+ SkCanvas* canvas = result->beginRecording(100, 100); |
+ result->internalOnly_EnableOpts(false); |
SkPaint saveLayerPaint; |
saveLayerPaint.setColor(0xCC000000); |