diff options
Diffstat (limited to 'src/utils/debugger/SkObjectParser.cpp')
-rw-r--r-- | src/utils/debugger/SkObjectParser.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/utils/debugger/SkObjectParser.cpp b/src/utils/debugger/SkObjectParser.cpp index 3dbc03901f..6d71a38b7b 100644 --- a/src/utils/debugger/SkObjectParser.cpp +++ b/src/utils/debugger/SkObjectParser.cpp @@ -338,16 +338,13 @@ SkString* SkObjectParser::RegionToString(const SkRegion& region) { return mRegion; } -SkString* SkObjectParser::SaveFlagsToString(SkCanvas::SaveFlags flags) { +SkString* SkObjectParser::SaveLayerFlagsToString(SkCanvas::SaveLayerFlags saveLayerFlags) { SkString* mFlags = new SkString("SkCanvas::SaveFlags: "); - if (flags & SkCanvas::kHasAlphaLayer_SaveFlag) { - mFlags->append("kHasAlphaLayer_SaveFlag "); + if (saveLayerFlags & SkCanvas::kIsOpaque_SaveLayerFlag) { + mFlags->append("kIsOpaque_SaveLayerFlag "); } - if (flags & SkCanvas::kFullColorLayer_SaveFlag) { - mFlags->append("kFullColorLayer_SaveFlag "); - } - if (flags & SkCanvas::kClipToLayer_SaveFlag) { - mFlags->append("kClipToLayer_SaveFlag "); + if (saveLayerFlags & SkCanvas::kPreserveLCDText_SaveLayerFlag) { + mFlags->append("kPreserveLCDText_SaveLayerFlag "); } return mFlags; } |