summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorccameron <ccameron@chromium.org>2015-11-05 17:49:47 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-06 01:50:31 +0000
commitce99ede5349c82537e78d1b0cd9c70559550964c (patch)
tree1d8b45289f08cc2f10fc0f8835172591e28e60a9 /media
parentfb20d9affeca51ff005a0dfd6dce194acd0ef342 (diff)
downloadchromium_src-ce99ede5349c82537e78d1b0cd9c70559550964c.zip
chromium_src-ce99ede5349c82537e78d1b0cd9c70559550964c.tar.gz
chromium_src-ce99ede5349c82537e78d1b0cd9c70559550964c.tar.bz2
cc: Fix GL_R8 GpuMemoryBuffers
Make GLImages use GL_RED instead of GL_R8 as the internal format, because GL_R8 isn't supported as an internal format for most GL functions and almost all GLES functions. BUG=533677 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1434453008 Cr-Commit-Position: refs/heads/master@{#358225}
Diffstat (limited to 'media')
-rw-r--r--media/video/gpu_memory_buffer_video_frame_pool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/video/gpu_memory_buffer_video_frame_pool.cc b/media/video/gpu_memory_buffer_video_frame_pool.cc
index cad8463..4b23aad 100644
--- a/media/video/gpu_memory_buffer_video_frame_pool.cc
+++ b/media/video/gpu_memory_buffer_video_frame_pool.cc
@@ -183,7 +183,7 @@ unsigned ImageInternalFormat(VideoPixelFormat format, size_t plane) {
switch (format) {
case PIXEL_FORMAT_I420:
DCHECK_LE(plane, 2u);
- return GL_R8_EXT;
+ return GL_RED_EXT;
case PIXEL_FORMAT_NV12:
DCHECK_LE(plane, 1u);
DLOG(WARNING) << "NV12 format not supported yet";