diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index c840834284..b0da855845 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -237,6 +237,10 @@ static bool is_simple(const SkPaint& p) { static bool remove_save_layer1(SkWriter32* writer, int32_t offset, SkPaintDictionary* paintDict) { +#ifdef SK_IGNORE_PICTURE_RECORD_SAVE_LAYER_OPT + return false; +#endif + int32_t restoreOffset = (int32_t)writer->size(); // back up to the save block |