| Index: gpu/command_buffer/client/gles2_implementation.cc
|
| diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
|
| index 7c7f99d6fe17a02492827ee98e569d885d8c0c1b..958e0189cb38f77e65aae951a2a5f02c2c3442b6 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation.cc
|
| +++ b/gpu/command_buffer/client/gles2_implementation.cc
|
| @@ -4415,14 +4415,31 @@ static GLenum GetGLESOverlayTransform(gfx::OverlayTransform plane_transform) {
|
| return GL_OVERLAY_TRANSFORM_NONE_CHROMIUM;
|
| }
|
|
|
| +static GLuint GetGLESOverlayFormat(gfx::BufferFormat storage_format) {
|
| + switch (storage_format) {
|
| + case gfx::BufferFormat::BGRX_8888:
|
| + return GL_BGR;
|
| + case gfx::BufferFormat::BGRA_8888:
|
| + return GL_BGRA_EXT;
|
| + case gfx::BufferFormat::UYVY_422:
|
| + return GL_RGB_YCBCR_422_CHROMIUM;
|
| + default:
|
| + NOTREACHED();
|
| + return GL_BGRA_EXT;
|
| + }
|
| +}
|
| +
|
| void GLES2Implementation::ScheduleOverlayPlane(
|
| int plane_z_order,
|
| gfx::OverlayTransform plane_transform,
|
| + gfx::BufferFormat optimal_storage_format,
|
| unsigned overlay_texture_id,
|
| const gfx::Rect& display_bounds,
|
| - const gfx::RectF& uv_rect) {
|
| + const gfx::RectF& uv_rect,
|
| + bool handle_scaling) {
|
| ScheduleOverlayPlaneCHROMIUM(plane_z_order,
|
| GetGLESOverlayTransform(plane_transform),
|
| + GetGLESOverlayFormat(optimal_storage_format),
|
| overlay_texture_id,
|
| display_bounds.x(),
|
| display_bounds.y(),
|
| @@ -4431,7 +4448,8 @@ void GLES2Implementation::ScheduleOverlayPlane(
|
| uv_rect.x(),
|
| uv_rect.y(),
|
| uv_rect.width(),
|
| - uv_rect.height());
|
| + uv_rect.height(),
|
| + handle_scaling);
|
| }
|
|
|
| void GLES2Implementation::ScheduleCALayerCHROMIUM(GLuint contents_texture_id,
|
|
|