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

Unified Diff: content/common/gpu/gpu_channel_manager.cc

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/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

Powered by Google App Engine
This is Rietveld 408576698