Index: content/common/gpu/media/rendering_helper_mac.mm |
diff --git a/content/common/gpu/media/rendering_helper_mac.mm b/content/common/gpu/media/rendering_helper_mac.mm |
index a145c13dd8f16b7e053baa8b8fb2866726643c81..428cea6a2ac3abeecdc72ac335244cc13178d93e 100644 |
--- a/content/common/gpu/media/rendering_helper_mac.mm |
+++ b/content/common/gpu/media/rendering_helper_mac.mm |
@@ -90,6 +90,7 @@ class RenderingHelperMac : public RenderingHelper { |
base::WaitableEvent* done) OVERRIDE; |
virtual void UnInitialize(base::WaitableEvent* done) OVERRIDE; |
virtual void CreateTexture(int window_id, |
+ int texture_target, |
GLuint* texture_id, |
base::WaitableEvent* done) OVERRIDE; |
virtual void RenderTexture(GLuint texture_id) OVERRIDE; |
@@ -185,9 +186,11 @@ void RenderingHelperMac::UnInitialize(base::WaitableEvent* done) { |
} |
void RenderingHelperMac::CreateTexture(int window_id, |
+ int texture_target, |
GLuint* texture_id, |
base::WaitableEvent* done) { |
CHECK_EQ(MessageLoop::current(), message_loop_); |
+ CHECK_EQ(GL_TEXTURE_RECTANGLE_ARB, texture_target); |
CGLContextObj cgl_ctx = GetCGLContext(gl_view_); |
glGenTextures(1, texture_id); |
CHECK_EQ(GL_NO_ERROR, static_cast<int>(glGetError())); |