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

Unified Diff: mojo/gpu/gl_context.h

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 | « no previous file | mojo/gpu/gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/gl_context.h
diff --git a/mojo/gpu/gl_context.h b/mojo/gpu/gl_context.h
index 2ccdaaddafe88014f5109283e8942f4eaa474e8a..a557fdb83c666f6d28ffcbe6b2856986b6d3252a 100644
--- a/mojo/gpu/gl_context.h
+++ b/mojo/gpu/gl_context.h
@@ -12,6 +12,7 @@
#include "mojo/public/cpp/bindings/interface_ptr.h"
namespace mojo {
+class ApplicationConnector;
class CommandBuffer;
using CommandBufferPtr = InterfacePtr<CommandBuffer>;
class Shell;
@@ -26,7 +27,11 @@ class GLContext {
virtual ~Observer();
};
- static base::WeakPtr<GLContext> Create(Shell* shell);
+ // Creates an offscreen GL context.
+ static base::WeakPtr<GLContext> CreateOffscreen(
+ ApplicationConnector* connector);
+
+ // Creates a GL context from a command buffer.
static base::WeakPtr<GLContext> CreateFromCommandBuffer(
CommandBufferPtr command_buffer);
« no previous file with comments | « no previous file | mojo/gpu/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698