| Index: src/record/SkRecorder.cpp
|
| diff --git a/src/record/SkRecorder.cpp b/src/record/SkRecorder.cpp
|
| index 345597c5bb5300e49db15d659762aef6d18236b4..2b787dd5abe96aa4bc9a89dd60e51c4ba90a5a66 100644
|
| --- a/src/record/SkRecorder.cpp
|
| +++ b/src/record/SkRecorder.cpp
|
| @@ -195,14 +195,22 @@ void SkRecorder::drawVertices(VertexMode vmode,
|
| }
|
|
|
| void SkRecorder::willSave(SkCanvas::SaveFlags flags) {
|
| - APPEND(Save, flags);
|
| + APPEND(Save
|
| +#ifdef SK_SUPPORT_LEGACY_SAVEFLAGS
|
| + , flags
|
| +#endif
|
| + );
|
| INHERITED(willSave, flags);
|
| }
|
|
|
| SkCanvas::SaveLayerStrategy SkRecorder::willSaveLayer(const SkRect* bounds,
|
| const SkPaint* paint,
|
| SkCanvas::SaveFlags flags) {
|
| - APPEND(SaveLayer, this->copy(bounds), this->copy(paint), flags);
|
| + APPEND(SaveLayer, this->copy(bounds), this->copy(paint)
|
| +#ifdef SK_SUPPORT_LEGACY_SAVEFLAGS
|
| + , flags
|
| +#endif
|
| + );
|
| INHERITED(willSaveLayer, bounds, paint, flags);
|
| return SkCanvas::kNoLayer_SaveLayerStrategy;
|
| }
|
|
|