SkBitmap and SkPixelRef no longer need lock/unlock

https://codereview.chromium.org/2823003002
This commit is contained in:
Aleksei Kuzmin 2017-08-08 16:38:04 +03:00 committed by Cheng Zhao
parent ea4a36039a
commit ea8e113b19
5 changed files with 0 additions and 12 deletions

View file

@ -89,7 +89,6 @@ void FrameSubscriber::OnFrameDelivered(const FrameCaptureCallback& callback,
auto local_buffer = buffer.ToLocalChecked();
{
SkAutoLockPixels lock(bitmap);
auto source = static_cast<const unsigned char*>(bitmap.getPixels());
auto target = node::Buffer::Data(local_buffer);