commit | d6ba95e724b61261202898638a1462470df94402 | [log] [tgz] |
---|---|---|
author | jbauch <jbauch@webrtc.org> | Thu Feb 25 14:16:52 2016 |
committer | Commit bot <commit-bot@chromium.org> | Thu Feb 25 14:16:58 2016 |
tree | 948560c2912665482a49ec392d2aa54642dc87d5 | |
parent | 0bb951e48c15d1e9e7ee1ada5b92a2f188a55965 [diff] |
Add CopyOnWriteBuffer class This CL introduces a new class CopyOnWriteBuffer that holds data in a refcounted Buffer which is shared between copied CopyOnWriteBuffer to avoid unnecessary allocations / memory copies. BUG=webrtc:5155 Review URL: https://codereview.webrtc.org/1697743003 Cr-Original-Commit-Position: refs/heads/master@{#11767} Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc Cr-Mirrored-Commit: 13041cf11f1c2691bb3ddc7d28e74cae9333b685