As per previous threads here and here, PassRefPtr will soon be removed. I have started working on the removal (tracking bug here).
New usage
Soon you will no longer be able to use PassRefPtr to pass ownership of a RefCounted object. Instead, when passing RefCounted objects:
If you no longer need access to the object, pass a RefPtr using std::move() (replaces passing a PassRefPtr normally or passing a RefPtr using .release())
If you still need access to the object, pass a RefPtr normally (replaces passing a PassRefPtr using .get())
I plan to create a more detailed RefPtr usage guide in future :) Feel free to send me questions/comments.
Cheers
Bugs
This is amazing!Would there be any way to measure the performance impact of removing PassRefPtr? I do support the replacement but want to make sure that it doesn't regress performance before starting the replacement incrementally :)