From: Ben Wagner Date: Thu, 16 Feb 2017 18:59:09 +0000 (-0500) Subject: Replace use of SkBitmap::eraseRGB with eraseColor. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~55^2~252 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd768fa29babfec80f94e1854c66f228dfc19d67;p=platform%2Fupstream%2FlibSkiaSharp.git 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 --- diff --git a/gm/simple_magnification.cpp b/gm/simple_magnification.cpp index 402a7de..4acd774 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);