Index: content/shell/test_runner/test_runner.cc |
diff --git a/content/shell/test_runner/test_runner.cc b/content/shell/test_runner/test_runner.cc |
index b2201f4bddfcc33b27c4d28fa291cdd7a4f733f3..3feadb7db1bd093ee2d0c77c9416cdfc96eb6824 100644 |
--- a/content/shell/test_runner/test_runner.cc |
+++ b/content/shell/test_runner/test_runner.cc |
@@ -1800,10 +1800,7 @@ void TestRunner::DumpPixelsAsync( |
// Return a blank image so that the test fails. |
SkBitmap bitmap; |
bitmap.allocN32Pixels(1, 1); |
- { |
- SkAutoLockPixels lock(bitmap); |
- bitmap.eraseColor(0); |
- } |
+ bitmap.eraseColor(0); |
callback.Run(bitmap); |
return; |
} |