Use GLHelper for glReadPixels and format detection
commit729d1b4ab86eeb1e095534449e442edee16d524e
authorrobert.bradford <robert.bradford@intel.com>
Thu, 4 Sep 2014 22:22:44 +0000 (4 15:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Sep 2014 22:25:05 +0000 (4 22:25 +0000)
tree14d5884016f9cf3d444305887c6c007e01216a5c
parenta9900086b8a10de59965e9ab76b58fdb9e4300c1
Use GLHelper for glReadPixels and format detection

GLHelper has functionality for testing for appropriate GL readback
format support, caching this information where appropriate. This change
switches RendererGpuVideoAcceleratorFactories over to using that code
for supported format identification and glReadPixels in the desired
format. The code continues to do a software swizzle if necessary.

TEST=WebGL conformance tests
BUG=None

Review URL: https://codereview.chromium.org/456823002

Cr-Commit-Position: refs/heads/master@{#293358}
content/renderer/media/renderer_gpu_video_accelerator_factories.cc
content/renderer/media/renderer_gpu_video_accelerator_factories.h