Skip to content

Commit

Permalink
rendering_helper - Flush the GL commands after rendering to FBO.
Browse files Browse the repository at this point in the history
We need this synchronization before we can return the texture to the decoder.

BUG=391234
TEST=Run the vda_unittest on lumpy

Review URL: https://codereview.chromium.org/371593002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285228 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
owenlin@chromium.org committed Jul 24, 2014
1 parent 5650016 commit 3d06586
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/common/gpu/media/rendering_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ void RenderingHelper::RenderThumbnail(uint32 texture_target,
GLSetViewPort(area);
RenderTexture(texture_target, texture_id);
glBindFramebufferEXT(GL_FRAMEBUFFER, 0);

// Need to flush the GL commands before we return the tnumbnail texture to
// the decoder.
glFlush();
++frame_count_;
}

Expand Down

0 comments on commit 3d06586

Please sign in to comment.