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

Unified Diff: skia/ext/bitmap_platform_device_skia.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_mac.cc ('k') | skia/ext/bitmap_platform_device_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_skia.cc
diff --git a/skia/ext/bitmap_platform_device_skia.cc b/skia/ext/bitmap_platform_device_skia.cc
index 6f8370d6df9dc3160c450cf7d14e81258b79793e..fc09aae5b331dbdafa31967ef497db66847f1782 100644
--- a/skia/ext/bitmap_platform_device_skia.cc
+++ b/skia/ext/bitmap_platform_device_skia.cc
@@ -27,7 +27,7 @@ BitmapPlatformDevice* BitmapPlatformDevice::CreateAndClear(int width,
bool is_opaque) {
BitmapPlatformDevice* device = Create(width, height, is_opaque);
if (!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_mac.cc ('k') | skia/ext/bitmap_platform_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698