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

Unified Diff: content/common/gpu/media/rendering_helper_egl.cc

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_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();

Powered by Google App Engine
This is Rietveld 408576698