aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/simple_magnification.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2017-02-16 13:59:09 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-16 20:50:23 +0000
commitdd768fa29babfec80f94e1854c66f228dfc19d67 (patch)
tree318b99f9667999f1ba676b9c57f94778e6bc9962 /gm/simple_magnification.cpp
parent50afc1765511a8d4850fe97aacf8714b609bfd5a (diff)
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 <robertphillips@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'gm/simple_magnification.cpp')
-rw-r--r--gm/simple_magnification.cpp2
1 files changed, 1 insertions, 1 deletions
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<SkImage> 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);