Index: content/common/gpu/gpu_channel_manager.cc |
diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc |
index 41a51c091c748097cbb1503d436d05df5c097380..a79387800bd9e42c9c01f19812aa6eccf41bc4fa 100644 |
--- a/content/common/gpu/gpu_channel_manager.cc |
+++ b/content/common/gpu/gpu_channel_manager.cc |
@@ -278,4 +278,12 @@ gfx::GLSurface* GpuChannelManager::GetDefaultOffscreenSurface() { |
return default_offscreen_surface_.get(); |
} |
+bool GpuChannelManager::MakeCurrent(gfx::GLSurface* surface) { |
+ gfx::GLContext* context = share_group_->GetContext(); |
+ if (context) |
+ return context->MakeCurrent(surface); |
+ |
+ return false; |
+} |
+ |
} // namespace content |