Commit c9947489 by Nicolas Capens

Remove superfluous incRef/decRef on graphics buffer.

Dequeuing and queuing the graphics buffer takes care of ownership, and a previous patch ensured the buffer is unlocked before we queue it so we don't need to hold a reference for longer. Bug b/34981145 Bug b/35443034 Change-Id: I6cbaeff08f5d930dde8bdd1522052ac33a6ae9ac Reviewed-on: https://swiftshader-review.googlesource.com/8849Reviewed-by: 's avatarGreg Hartman <ghartman@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarGreg Hartman <ghartman@google.com>
parent d7f3cc86
......@@ -75,8 +75,6 @@ namespace sw
}
queueBuffer(nativeWindow, buffer, -1);
buffer->common.decRef(&buffer->common);
}
}
......@@ -87,8 +85,6 @@ namespace sw
return nullptr;
}
buffer->common.incRef(&buffer->common);
if(gralloc->lock(gralloc, buffer->handle,
GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN,
0, 0, buffer->width, buffer->height, &locked) != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment