SkBitmap and SkPixelRef no longer need lock/unlock

https://codereview.chromium.org/2823003002
This commit is contained in:
Aleksei Kuzmin 2017-08-08 16:38:04 +03:00 committed by Cheng Zhao
parent ea4a36039a
commit ea8e113b19
5 changed files with 0 additions and 12 deletions

View file

@ -18,8 +18,6 @@ void Win32Notification::Show(const NotificationOptions& options) {
if (!options.icon.drawsNothing()) {
if (options.icon.colorType() == kBGRA_8888_SkColorType) {
options.icon.lockPixels();
BITMAPINFOHEADER bmi = { sizeof(BITMAPINFOHEADER) };
bmi.biWidth = options.icon.width();
bmi.biHeight = -options.icon.height();
@ -33,8 +31,6 @@ void Win32Notification::Show(const NotificationOptions& options) {
reinterpret_cast<BITMAPINFO*>(&bmi),
DIB_RGB_COLORS);
ReleaseDC(NULL, hdcScreen);
options.icon.unlockPixels();
}
}