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

Unified Diff: content/browser/renderer_host/surface_texture_transport_client_android.cc

Issue 11418293: Avoid attaching SurfaceTexture to GL context repeatedly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/surface_texture_transport_client_android.cc
diff --git a/content/browser/renderer_host/surface_texture_transport_client_android.cc b/content/browser/renderer_host/surface_texture_transport_client_android.cc
index 9995a5361224fa2f67b2bd705381cfaace7c3920..83d5901db276aeeb2ab01426e470813a35cb7455 100644
--- a/content/browser/renderer_host/surface_texture_transport_client_android.cc
+++ b/content/browser/renderer_host/surface_texture_transport_client_android.cc
@@ -71,9 +71,9 @@ WebKit::WebVideoFrame* SurfaceTextureTransportClient::getCurrentFrame() {
ImageTransportFactoryAndroid::GetInstance()->GetContext3D();
context->makeContextCurrent();
texture_id_ = context->createTexture();
+ surface_texture_->AttachToGLContext(texture_id_);
}
if (!video_frame_.get()) {
- surface_texture_->AttachToGLContext(texture_id_);
const gfx::Size size = video_layer_->bounds();
video_frame_.reset(
new webkit_media::WebVideoFrameImpl(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698