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

Unified Diff: mojo/examples/sample_app/sample_gles2_delegate.cc

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/examples/sample_app/sample_gles2_delegate.cc
diff --git a/mojo/examples/sample_app/sample_gles2_delegate.cc b/mojo/examples/sample_app/sample_gles2_delegate.cc
index 8245ce6ebf44ab3429f76338b49b197c09e8fc79..4bac0225141f0905481863f42edee9cab8d395a2 100644
--- a/mojo/examples/sample_app/sample_gles2_delegate.cc
+++ b/mojo/examples/sample_app/sample_gles2_delegate.cc
@@ -19,7 +19,7 @@ SampleGLES2Delegate::~SampleGLES2Delegate() {
}
void SampleGLES2Delegate::DidCreateContext(
- GLES2* gl, uint32_t width, uint32_t height) {
+ GLES2ClientImpl* gl, uint32_t width, uint32_t height) {
gl_ = gl;
cube_.Init(width, height);
last_time_ = base::Time::Now();
@@ -36,9 +36,9 @@ void SampleGLES2Delegate::Draw() {
gl_->SwapBuffers();
}
-void SampleGLES2Delegate::ContextLost(GLES2* gl) {
- timer_.Stop();
+void SampleGLES2Delegate::ContextLost(GLES2ClientImpl* gl) {
gl_ = NULL;
+ timer_.Stop();
}
} // namespace examples
« no previous file with comments | « mojo/examples/sample_app/sample_gles2_delegate.h ('k') | mojo/public/bindings/gles2_client/gles2_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698