diff options
author | reed@chromium.org <reed@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-18 16:40:52 +0000 |
---|---|---|
committer | reed@chromium.org <reed@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-18 16:40:52 +0000 |
commit | b022a89ebbddc2589f424f7641021e621b9185cb (patch) | |
tree | 5d05ddd9b6b2eab4dbc65d4fa53e773395e7b199 /skia | |
parent | 995a785f41a15d97150da710312c4016ee7bfbd3 (diff) | |
download | chromium_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.cc | 2 | ||||
-rw-r--r-- | skia/ext/bitmap_platform_device_skia.cc | 2 | ||||
-rw-r--r-- | skia/ext/bitmap_platform_device_win.cc | 2 |
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; } |