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

Unified Diff: content/browser/devtools/devtools_frame_trace_recorder.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
Index: content/browser/devtools/devtools_frame_trace_recorder.cc
diff --git a/content/browser/devtools/devtools_frame_trace_recorder.cc b/content/browser/devtools/devtools_frame_trace_recorder.cc
index d0977b7e75ea03b9ed7c57c8e83a65c89aad9037..06b3dc0759fc5ee83d40eb1a7cdbbdd9c033dd30 100644
--- a/content/browser/devtools/devtools_frame_trace_recorder.cc
+++ b/content/browser/devtools/devtools_frame_trace_recorder.cc
@@ -40,7 +40,6 @@ class TraceableDevToolsScreenshot
out->append("\"");
if (!frame_.drawsNothing()) {
std::vector<unsigned char> data;
- SkAutoLockPixels lock_image(frame_);
bool encoded = gfx::JPEGCodec::Encode(
reinterpret_cast<unsigned char*>(frame_.getAddr32(0, 0)),
gfx::JPEGCodec::FORMAT_SkBitmap,
« no previous file with comments | « content/browser/compositor/surface_utils.cc ('k') | content/browser/devtools/protocol/devtools_protocol_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698