| Index: mojo/services/gles2/gles2_impl.cc
|
| diff --git a/mojo/services/gles2/gles2_impl.cc b/mojo/services/gles2/gles2_impl.cc
|
| index ffa5962b37fd4737859eebe3e2a8d2b0553002ef..f0451f5bd84c6f642a311c64e17d4e16c7d601ff 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,
|
|
|