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

Unified Diff: mojo/gpu/gl_context_owner.cc

Issue 1537783002: Improve GL helpers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
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..90885485a6799b92f2377287237e2d45f3cd17c3 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(mojo::ApplicationConnector* connector)
vtl 2015/12/17 22:30:35 Ditto (here and below).
jeffbrown 2015/12/17 22:33:23 Done.
+ : context_(mojo::GLContext::CreateOffscreen(connector)) {}
GLContextOwner::~GLContextOwner() {
context_->Destroy();

Powered by Google App Engine
This is Rietveld 408576698