aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/views/win/SkOSWindow_win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/win/SkOSWindow_win.cpp')
-rw-r--r--src/views/win/SkOSWindow_win.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp
index 983b253c53..8be15d1d20 100644
--- a/src/views/win/SkOSWindow_win.cpp
+++ b/src/views/win/SkOSWindow_win.cpp
@@ -207,7 +207,6 @@ void SkOSWindow::doPaint(void* ctx) {
// seems to be to copy the bitmap to a temporary (contiguous)
// buffer before passing to SetDIBitsToDevice().
SkASSERT(bitmap.width() * bitmap.bytesPerPixel() == bitmap.rowBytes());
- bitmap.lockPixels();
int ret = SetDIBitsToDevice(hdc,
0, 0,
bitmap.width(), bitmap.height(),
@@ -217,7 +216,6 @@ void SkOSWindow::doPaint(void* ctx) {
&bmi,
DIB_RGB_COLORS);
(void)ret; // we're ignoring potential failures for now.
- bitmap.unlockPixels();
}
}