Index: cc/output/gl_renderer.cc |
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc |
index cb76e74e1456af40bdadeb35a597800259ba5acf..ff1b83812432068323fed4e467277d6a5d216c39 100644 |
--- a/cc/output/gl_renderer.cc |
+++ b/cc/output/gl_renderer.cc |
@@ -2109,6 +2109,9 @@ void GLRenderer::DrawYUVVideoQuad(const YUVVideoDrawQuad* quad, |
break; |
} |
} |
+ // Invalid or unspecified color spaces should be treated as REC709. |
+ if (!src_color_space.IsValid()) |
+ src_color_space = gfx::ColorSpace::CreateREC709(); |
ResourceProvider::ScopedSamplerGL y_plane_lock( |
resource_provider_, quad->y_plane_resource_id(), GL_TEXTURE1, GL_LINEAR); |