summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorreed@chromium.org <reed@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-18 16:40:52 +0000
committerreed@chromium.org <reed@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-18 16:40:52 +0000
commitb022a89ebbddc2589f424f7641021e621b9185cb (patch)
tree5d05ddd9b6b2eab4dbc65d4fa53e773395e7b199 /skia
parent995a785f41a15d97150da710312c4016ee7bfbd3 (diff)
downloadchromium_src-b022a89ebbddc2589f424f7641021e621b9185cb.zip
chromium_src-b022a89ebbddc2589f424f7641021e621b9185cb.tar.gz
chromium_src-b022a89ebbddc2589f424f7641021e621b9185cb.tar.bz2
call clear() instead of using deprecated API accessBitmap()
BUG= Review URL: https://codereview.chromium.org/168833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/bitmap_platform_device_mac.cc2
-rw-r--r--skia/ext/bitmap_platform_device_skia.cc2
-rw-r--r--skia/ext/bitmap_platform_device_win.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/skia/ext/bitmap_platform_device_mac.cc b/skia/ext/bitmap_platform_device_mac.cc
index a62c3cf..259dc59 100644
--- a/skia/ext/bitmap_platform_device_mac.cc
+++ b/skia/ext/bitmap_platform_device_mac.cc
@@ -146,7 +146,7 @@ BitmapPlatformDevice* BitmapPlatformDevice::CreateAndClear(int width,
bool is_opaque) {
BitmapPlatformDevice* device = Create(NULL, width, height, is_opaque);
if (!is_opaque)
- device->accessBitmap(true).eraseARGB(0, 0, 0, 0);
+ device->clear(0);
return device;
}
diff --git a/skia/ext/bitmap_platform_device_skia.cc b/skia/ext/bitmap_platform_device_skia.cc
index 6f8370d..fc09aae 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;
}
diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc
index 89e3834..0f0f995 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;
}