Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: content/shell/test_runner/pixel_dump.cc

Issue 2823003002: SkBitmap and SkPixelRef no longer need lock/unlock (Closed)
Patch Set: win fix after rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | content/shell/test_runner/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/test_runner/pixel_dump.cc
diff --git a/content/shell/test_runner/pixel_dump.cc b/content/shell/test_runner/pixel_dump.cc
index 6252a44da9555287b2b8891998fe327d2428e04b..123030fed6bc974b2c6f953d71e4a560010601f9 100644
--- a/content/shell/test_runner/pixel_dump.cc
+++ b/content/shell/test_runner/pixel_dump.cc
@@ -204,9 +204,7 @@ void CopyImageAtAndCapturePixels(
blink::WebImage image = static_cast<blink::WebMockClipboard*>(
blink::Platform::Current()->Clipboard())
->ReadRawImage(blink::WebClipboard::Buffer());
- const SkBitmap& bitmap = image.GetSkBitmap();
- SkAutoLockPixels autoLock(bitmap);
- callback.Run(bitmap);
+ callback.Run(image.GetSkBitmap());
}
} // namespace test_runner
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | content/shell/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698