summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/texture_image_transport_surface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu/texture_image_transport_surface.cc')
-rw-r--r--content/common/gpu/texture_image_transport_surface.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/content/common/gpu/texture_image_transport_surface.cc b/content/common/gpu/texture_image_transport_surface.cc
index e22082e..c0f1071 100644
--- a/content/common/gpu/texture_image_transport_surface.cc
+++ b/content/common/gpu/texture_image_transport_surface.cc
@@ -114,10 +114,7 @@ bool TextureImageTransportSurface::OnMakeCurrent(gfx::GLContext* context) {
return true;
}
- if (!context_.get()) {
- DCHECK(helper_->stub());
- context_ = helper_->stub()->decoder()->GetGLContext();
- }
+ context_ = context;
if (!fbo_id_) {
glGenFramebuffersEXT(1, &fbo_id_);