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

Unified Diff: mojo/public/bindings/gles2_client/gles2_client_impl.h

Issue 99323005: [Mojo] Fix race condition in sample_app's SwapBuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/public/bindings/gles2_client/gles2_client_impl.h
diff --git a/mojo/public/bindings/gles2_client/gles2_client_impl.h b/mojo/public/bindings/gles2_client/gles2_client_impl.h
index 63106acfcd3a34a2233e2a4076abc79cec005273..9213905cc3e47755bb308ccd747cd67d9769bdc1 100644
--- a/mojo/public/bindings/gles2_client/gles2_client_impl.h
+++ b/mojo/public/bindings/gles2_client/gles2_client_impl.h
@@ -9,12 +9,14 @@
#include "mojom/gles2.h"
namespace mojo {
+class GLES2ClientImpl;
class GLES2Delegate {
public:
virtual ~GLES2Delegate();
- virtual void DidCreateContext(GLES2* gl, uint32_t width, uint32_t height);
- virtual void ContextLost(GLES2* gl);
+ virtual void DidCreateContext(
+ GLES2ClientImpl* gl, uint32_t width, uint32_t height);
+ virtual void ContextLost(GLES2ClientImpl* gl);
};
class GLES2ClientImpl : public GLES2ClientStub {
@@ -26,9 +28,7 @@ class GLES2ClientImpl : public GLES2ClientStub {
static void Initialize();
static void Terminate();
- GLES2* gl() {
- return gl_.get();
- }
+ void SwapBuffers();
private:
virtual void DidCreateContext(
« no previous file with comments | « mojo/examples/sample_app/sample_gles2_delegate.cc ('k') | mojo/public/bindings/gles2_client/gles2_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698