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

Unified Diff: mojo/gpu/gl_context_owner.cc

Issue 1532923003: Improve GL helpers. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-7
Patch Set: rebase Created 4 years, 11 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
« no previous file with comments | « mojo/gpu/gl_context_owner.h ('k') | mojo/gpu/gl_texture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/gl_context_owner.cc
diff --git a/mojo/gpu/gl_context_owner.cc b/mojo/gpu/gl_context_owner.cc
index 81d7d336d467cdd318a8eb962adf47690c7c8a8f..b90958391e10182fbec99bb355b84d28823cf1bc 100644
--- a/mojo/gpu/gl_context_owner.cc
+++ b/mojo/gpu/gl_context_owner.cc
@@ -8,9 +8,8 @@
namespace mojo {
-GLContextOwner::GLContextOwner(mojo::Shell* shell)
- : context_(mojo::GLContext::Create(shell)) {
-}
+GLContextOwner::GLContextOwner(ApplicationConnector* connector)
+ : context_(GLContext::CreateOffscreen(connector)) {}
GLContextOwner::~GLContextOwner() {
context_->Destroy();
« no previous file with comments | « mojo/gpu/gl_context_owner.h ('k') | mojo/gpu/gl_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698