| 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 30b8ecfa7ba524e237a7b0cbf2a3240b5973a6c3..3b2f0d10873be785c9d7d54b251ac8212c3e2e90 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,
|
| + int texture_target,
|
| uint32* texture_id,
|
| base::WaitableEvent* done) OVERRIDE;
|
| virtual void RenderTexture(uint32 texture_id) OVERRIDE;
|
| @@ -247,6 +248,7 @@ void RenderingHelperEGL::UnInitialize(base::WaitableEvent* done) {
|
| }
|
|
|
| void RenderingHelperEGL::CreateTexture(int window_id,
|
| + int texture_target,
|
| uint32* texture_id,
|
| base::WaitableEvent* done) {
|
| if (MessageLoop::current() != message_loop_) {
|
| @@ -256,6 +258,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();
|
|
|