| Index: media/blink/skcanvas_video_renderer.cc
|
| diff --git a/media/blink/skcanvas_video_renderer.cc b/media/blink/skcanvas_video_renderer.cc
|
| index 71d1e77bb3c061a892aadd4063ea922298f7f72c..a61ea3688f0c27e8c9ba92e7c218635e7682c9b2 100644
|
| --- a/media/blink/skcanvas_video_renderer.cc
|
| +++ b/media/blink/skcanvas_video_renderer.cc
|
| @@ -637,17 +637,13 @@ void SkCanvasVideoRenderer::CopyVideoFrameSingleTextureToGLTexture(
|
|
|
| // The video is stored in a unmultiplied format, so premultiply
|
| // if necessary.
|
| - gl->PixelStorei(GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, premultiply_alpha);
|
| // Application itself needs to take care of setting the right |flip_y|
|
| // value down to get the expected result.
|
| // "flip_y == true" means to reverse the video orientation while
|
| // "flip_y == false" means to keep the intrinsic orientation.
|
| - gl->PixelStorei(GL_UNPACK_FLIP_Y_CHROMIUM, flip_y);
|
| gl->CopyTextureCHROMIUM(GL_TEXTURE_2D, source_texture, texture,
|
| internal_format, type,
|
| flip_y, premultiply_alpha, false);
|
| - gl->PixelStorei(GL_UNPACK_FLIP_Y_CHROMIUM, false);
|
| - gl->PixelStorei(GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, false);
|
|
|
| gl->DeleteTextures(1, &source_texture);
|
| gl->Flush();
|
|
|