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

Unified Diff: examples/sample_app/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/sample_app/gles2_client_impl.cc » ('j') | examples/sample_app/gles2_client_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/sample_app/gles2_client_impl.h
diff --git a/examples/sample_app/gles2_client_impl.h b/examples/sample_app/gles2_client_impl.h
index b6756781155edbb2327a0045ddc730c0c49115d2..9898e498c55b15d2cd02b4699042f0d79532e229 100644
--- a/examples/sample_app/gles2_client_impl.h
+++ b/examples/sample_app/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/sample_app/gles2_client_impl.cc » ('j') | examples/sample_app/gles2_client_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698