Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(918)

Unified Diff: skia/ext/bitmap_platform_device_win.cc

Issue 168833002: call clear() instead of using deprecated API accessBitmap() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/bitmap_platform_device_skia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_win.cc
diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc
index 89e3834d5dd54aa111a192f067c73e332f9db74d..0f0f99514dca04a94e22b3d565da67e92caf5494 100644
--- a/skia/ext/bitmap_platform_device_win.cc
+++ b/skia/ext/bitmap_platform_device_win.cc
@@ -157,7 +157,7 @@ BitmapPlatformDevice* BitmapPlatformDevice::CreateAndClear(int width,
BitmapPlatformDevice* device = BitmapPlatformDevice::Create(width, height,
is_opaque);
if (device && !is_opaque)
- device->accessBitmap(true).eraseARGB(0, 0, 0, 0);
+ device->clear(0);
return device;
}
« no previous file with comments | « skia/ext/bitmap_platform_device_skia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698