SkBitmap and SkPixelRef no longer need lock/unlock
https://codereview.chromium.org/2823003002
This commit is contained in:
parent
ea4a36039a
commit
ea8e113b19
5 changed files with 0 additions and 12 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue