Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 65002125a36d6f0e75a9a0ac0987b3938ff50fac..5c50201676de3358ee5ed7df30c302fdf0df5927 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -913,7 +913,7 @@ static SkBaseDevice* create_compatible_device(SkCanvas* canvas, |
int SkCanvas::internalSaveLayer(const SkRect* bounds, const SkPaint* paint, SaveFlags flags, |
bool justForImageFilter, SaveLayerStrategy strategy) { |
#ifndef SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG |
- flags = (SaveFlags)(flags | kClipToLayer_SaveFlag); |
+ flags |= kClipToLayer_SaveFlag; |
#endif |
// do this before we create the layer. We don't call the public save() since |