Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Unified Diff: content/common/gpu/media/rendering_helper_mac.mm

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()));

Powered by Google App Engine
This is Rietveld 408576698