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

Unified Diff: extensions/browser/api/web_contents_capture_client.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/test/image_decoder_test.cc ('k') | media/blink/webmediaplayer_cast_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/web_contents_capture_client.cc
diff --git a/extensions/browser/api/web_contents_capture_client.cc b/extensions/browser/api/web_contents_capture_client.cc
index 78ee2851a3f6c264e8fdb13388132b1e1689432a..98eb66791262d4f71bc595425398885cfe354ae3 100644
--- a/extensions/browser/api/web_contents_capture_client.cc
+++ b/extensions/browser/api/web_contents_capture_client.cc
@@ -91,7 +91,6 @@ bool WebContentsCaptureClient::EncodeBitmap(const SkBitmap& bitmap,
std::string* base64_result) {
DCHECK(base64_result);
std::vector<unsigned char> data;
- SkAutoLockPixels screen_capture_lock(bitmap);
const bool should_discard_alpha = !ClientAllowsTransparency();
bool encoded = false;
std::string mime_type;
« no previous file with comments | « content/test/image_decoder_test.cc ('k') | media/blink/webmediaplayer_cast_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698