| Index: content/common/gpu/media/rendering_helper_egl.cc
|
| diff --git a/content/common/gpu/media/rendering_helper_egl.cc b/content/common/gpu/media/rendering_helper_egl.cc
|
| index 17f2173467d9021a2fe96129b991cdc3513221e3..1958c54dfc41f4a6c085d9d69a419e3c24eafca8 100644
|
| --- a/content/common/gpu/media/rendering_helper_egl.cc
|
| +++ b/content/common/gpu/media/rendering_helper_egl.cc
|
| @@ -57,6 +57,7 @@ class RenderingHelperEGL : public RenderingHelper {
|
| base::WaitableEvent* done) OVERRIDE;
|
| virtual void UnInitialize(base::WaitableEvent* done) OVERRIDE;
|
| virtual void CreateTexture(int window_id,
|
| + uint32 texture_target,
|
| uint32* texture_id,
|
| base::WaitableEvent* done) OVERRIDE;
|
| virtual void RenderTexture(uint32 texture_id) OVERRIDE;
|
| @@ -245,6 +246,7 @@ void RenderingHelperEGL::UnInitialize(base::WaitableEvent* done) {
|
| }
|
|
|
| void RenderingHelperEGL::CreateTexture(int window_id,
|
| + uint32 texture_target,
|
| uint32* texture_id,
|
| base::WaitableEvent* done) {
|
| if (MessageLoop::current() != message_loop_) {
|
| @@ -254,6 +256,7 @@ void RenderingHelperEGL::CreateTexture(int window_id,
|
| window_id, texture_id, done));
|
| return;
|
| }
|
| + CHECK_EQ(GL_TEXTURE_2D, texture_target);
|
| CHECK(eglMakeCurrent(egl_display_, egl_surfaces_[window_id],
|
| egl_surfaces_[window_id], egl_context_))
|
| << eglGetError();
|
|
|