Index: samplecode/SampleLayers.cpp |
diff --git a/samplecode/SampleLayers.cpp b/samplecode/SampleLayers.cpp |
index 430c832f77549948683ebbc09b68288c6afa5a76..3ae543915c253dda4a406688784ba8fa49cc8ee4 100644 |
--- a/samplecode/SampleLayers.cpp |
+++ b/samplecode/SampleLayers.cpp |
@@ -69,11 +69,11 @@ static void test_fade(SkCanvas* canvas) { |
canvas->clipRect(r); |
r.fBottom = SkIntToScalar(20); |
- canvas->saveLayer(&r, NULL, (SkCanvas::SaveFlags)(SkCanvas::kHasAlphaLayer_SaveFlag | SkCanvas::kFullColorLayer_SaveFlag)); |
+ canvas->saveLayer(&r, NULL); |
r.fTop = SkIntToScalar(80); |
r.fBottom = SkIntToScalar(100); |
- canvas->saveLayer(&r, NULL, (SkCanvas::SaveFlags)(SkCanvas::kHasAlphaLayer_SaveFlag | SkCanvas::kFullColorLayer_SaveFlag)); |
+ canvas->saveLayer(&r, NULL); |
// now draw the "content" |
@@ -203,7 +203,7 @@ protected: |
r.set(SkIntToScalar(0), SkIntToScalar(0), |
SkIntToScalar(220), SkIntToScalar(60)); |
- canvas->saveLayer(&r, &p, (SkCanvas::SaveFlags)(SkCanvas::kHasAlphaLayer_SaveFlag | SkCanvas::kFullColorLayer_SaveFlag)); |
+ canvas->saveLayer(&r, &p); |
r.set(SkIntToScalar(0), SkIntToScalar(0), |
SkIntToScalar(220), SkIntToScalar(120)); |