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

Unified Diff: examples/spinning_cube/gles2_client_impl.h

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | examples/spinning_cube/gles2_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/spinning_cube/gles2_client_impl.h
diff --git a/examples/spinning_cube/gles2_client_impl.h b/examples/spinning_cube/gles2_client_impl.h
index 201b44149589d38cb1d5825fba7a44f8543ad304..3e0ea12276180f431fa5f84e05ee2e07949cc52a 100644
--- a/examples/spinning_cube/gles2_client_impl.h
+++ b/examples/spinning_cube/gles2_client_impl.h
@@ -14,7 +14,7 @@ namespace examples {
class GLES2ClientImpl {
public:
- explicit GLES2ClientImpl(mojo::CommandBufferPtr command_buffer);
+ explicit GLES2ClientImpl(mojo::ContextProviderPtr context_provider);
virtual ~GLES2ClientImpl();
void SetSize(const mojo::Size& size);
@@ -22,6 +22,7 @@ class GLES2ClientImpl {
void Draw();
private:
+ void ContextCreated(mojo::CommandBufferPtr command_buffer);
void ContextLost();
static void ContextLostThunk(void* closure);
void WantToDraw();
@@ -34,6 +35,7 @@ class GLES2ClientImpl {
MojoTimeTicks drag_start_time_;
bool waiting_to_draw_;
+ mojo::ContextProviderPtr context_provider_;
MojoGLES2Context context_;
MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl);
« no previous file with comments | « no previous file | examples/spinning_cube/gles2_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698