Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: media/video/gpu_memory_buffer_video_frame_pool.cc

Issue 1708263002: gpu: Expose internal format R8 instead of RED. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ResourceProvider should use R8 too. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/video/gpu_memory_buffer_video_frame_pool.cc
diff --git a/media/video/gpu_memory_buffer_video_frame_pool.cc b/media/video/gpu_memory_buffer_video_frame_pool.cc
index e7ffd99332be2d29bb1251968d80001562fbfc2f..6663a945fb0a6b4e42808f4e4e57c65e5065348f 100644
--- a/media/video/gpu_memory_buffer_video_frame_pool.cc
+++ b/media/video/gpu_memory_buffer_video_frame_pool.cc
@@ -199,7 +199,7 @@ unsigned ImageInternalFormat(VideoPixelFormat format, size_t plane) {
switch (format) {
case PIXEL_FORMAT_I420:
DCHECK_LE(plane, 2u);
- return GL_RED_EXT;
+ return GL_R8_EXT;
case PIXEL_FORMAT_NV12:
DCHECK_LE(plane, 1u);
return GL_RGB_YCBCR_420V_CHROMIUM;

Powered by Google App Engine
This is Rietveld 408576698