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

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: fix win build Created 8 years, 6 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 163fe53750f4849e92fd6b3a4b8abfc543604f24..0bd00769601fc9ff932b11eb7fee088228f162db 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,
+ uint32 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,
+ uint32 texture_target,
GLuint* texture_id,
base::WaitableEvent* done) {
CHECK_EQ(MessageLoop::current(), message_loop_);
+ CHECK_EQ(static_cast<uint32>(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()));
« no previous file with comments | « content/common/gpu/media/rendering_helper_egl.cc ('k') | content/common/gpu/media/video_decode_accelerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698