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

Unified Diff: content/browser/media/capture/cursor_renderer.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/media/capture/cursor_renderer.cc
diff --git a/content/browser/media/capture/cursor_renderer.cc b/content/browser/media/capture/cursor_renderer.cc
index c92645ff0d85b7b96de881c06461d6236e5ce8f3..f59fc2549feb70f3d9cf9e10fbe9b45f4847535b 100644
--- a/content/browser/media/capture/cursor_renderer.cc
+++ b/content/browser/media/capture/cursor_renderer.cc
@@ -146,7 +146,6 @@ void CursorRenderer::RenderOnVideoFrame(media::VideoFrame* target) const {
cursor_position_in_frame_.y()),
target->visible_rect());
- scaled_cursor_bitmap_.lockPixels();
for (int y = rect.y(); y < rect.bottom(); ++y) {
int cursor_y = y - cursor_position_in_frame_.y();
uint8_t* yplane = target->data(media::VideoFrame::kYPlane) +
@@ -177,7 +176,6 @@ void CursorRenderer::RenderOnVideoFrame(media::VideoFrame* target) const {
}
}
}
- scaled_cursor_bitmap_.unlockPixels();
}
void CursorRenderer::OnMouseMoved(const gfx::Point& location,

Powered by Google App Engine
This is Rietveld 408576698