summaryrefslogtreecommitdiffstats
path: root/mojo/services/gles2/gles2_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/services/gles2/gles2_impl.cc')
-rw-r--r--mojo/services/gles2/gles2_impl.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/mojo/services/gles2/gles2_impl.cc b/mojo/services/gles2/gles2_impl.cc
index ffa5962..f0451f5 100644
--- a/mojo/services/gles2/gles2_impl.cc
+++ b/mojo/services/gles2/gles2_impl.cc
@@ -19,10 +19,8 @@ GLES2Impl::GLES2Impl(ScopedMessagePipeHandle client)
GLES2Impl::~GLES2Impl() {
}
-void GLES2Impl::SwapBuffers() {
- if (!gl_context_)
- return;
- gl_context_->GetImplementation()->SwapBuffers();
+void GLES2Impl::Destroy() {
+ gl_context_.reset();
}
void GLES2Impl::CreateContext(gfx::AcceleratedWidget widget,