most of the code is in chrome, and do not used shared memory.
you will have to implement it yourself, and possibly port code back from chrome to standalone libwebrtc.
you might want to look at the "remoting" part of chrome, which uses libwebrtc for desktop capture (remote debugging, chromecast, ..) and has a different pipeline.
look at the different frame types, and you will see one that is in GPU memory (kNative something from the top of my head). That should be your entry point to understand what needs to be done.
Be carefull about the RTP / encoder coupling ..... the capturer-to-encoder part is far from being the most sensitive part of the pipeline.