From dd768fa29babfec80f94e1854c66f228dfc19d67 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Thu, 16 Feb 2017 13:59:09 -0500 Subject: [PATCH] Replace use of SkBitmap::eraseRGB with eraseColor. SkBitmap::eraseRGB is marked as deprecated. After this CL the code should have the exact same behavior as previously, but without calling the deprecated function. The presence of this deprecated call is causing extra warnings in the iOS build. Change-Id: I0770ca0a7e9884e7122f431a9ed2d3fdb2bbd6f8 Reviewed-on: https://skia-review.googlesource.com/8581 Reviewed-by: Robert Phillips Commit-Queue: Ben Wagner --- gm/simple_magnification.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gm/simple_magnification.cpp b/gm/simple_magnification.cpp index 402a7deaf0..4acd7742d6 100644 --- a/gm/simple_magnification.cpp +++ b/gm/simple_magnification.cpp @@ -31,7 +31,7 @@ static sk_sp make_image(GrContext* context, int size, GrSurfaceOrigin o } else { SkBitmap bm; bm.allocN32Pixels(size, size); - bm.eraseRGB(255, 0, 0); + bm.eraseColor(SK_ColorRED); *bm.getAddr32(1, 1) = SkPackARGB32(0xFF, 0x00, 0xFF, 0x00); *bm.getAddr32(2, 1) = SkPackARGB32(0xFF, 0x00, 0x00, 0xFF); *bm.getAddr32(1, 2) = SkPackARGB32(0xFF, 0x00, 0xFF, 0xFF);