ae-bridge: Encapsulate code blocks into bridge methods.

These are big chunks of code that we've been manually maintaining for
each of the video plugins.  Now it's in one place for easy maintenance
and cleaner diffs with upstream sources.
gles2rice: Use ae-bridge to streamline two code blocks.
gles2n64: Use ae-bridge to streamline two code blocks.