gpu: Refactor GpuMemoryBuffer framework for multi-process support.

This removes the ImageFactory interface and adjusts the buffer
allocation system for future multi-process support.

Also includes proper plumbing of internalformat to GLImage implementation
and makes sure the compositor is using the correct format.

TEST=gpu_unittests --gtest_filter=MockGpuMemoryBufferTest.Lifecycle
BUG=261649

Review URL: https://chromiumcodereview.appspot.com/20017005

(CM: Add the newly added file to the makefiles)
Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
Signed-off-by: Joel Teichroeb <joel@teichroeb.net>
Change-Id: Iff859f68f7097a36262bd24c0face0edf63f4a4c
Some changes added to compile and run with Java 6 and Java 7.

  + [base/**/jni_generator.py]
      javap 5 and 6 don't show generics.
      This feature is added on javap 7 and higher.
      To retrieve the same behavior, javap (7 and higher) have a new option "-XDcompat".

Change-Id: I761064f14dcb38d52fd735ef462a2c08b8c12cab
Signed-off-by: Jerome Pilliet <pilliet@univ-mlv.fr>
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_external_chromium_org into kk44